From 60db06e30a751de5f4281a3bc717603192f18716 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 5 May 2004 22:39:36 +0000 Subject: [PATCH] Make sure that we always print something to standard output, since right now this check is periodically failing saying that no output was returned. --- check_bos | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_bos b/check_bos index 867ccf0..210cc79 100755 --- a/check_bos +++ b/check_bos @@ -77,6 +77,7 @@ if ($help) { exit 0; } if (@ARGV) { + print "Usage: $0 [-hv] [-t ] -H \n"; warn "Usage: $0 [-hv] [-t ] -H \n"; exit 3; } @@ -90,7 +91,7 @@ alarm ($TIMEOUT); # Collect the bos output into a variable. unless (open (BOS, "$BOS status $host -noauth -long 2>&1 |")) { - warn "$0: cannot run rxdebug\n"; + print "BOS UNKNOWN: cannot run bos\n"; exit 3; } my @bos = ; -- 2.39.5