From 1814879b75005e94ec796d74644f1cec0117b8b0 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 2 Sep 2005 17:16:36 +0000 Subject: Use -n git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@12 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-libs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nagios-check-libs b/nagios-check-libs index 2d1e6e1..f38fcbc 100755 --- a/nagios-check-libs +++ b/nagios-check-libs @@ -64,12 +64,12 @@ sub getUsers() { -print STDERR "Running $LSOF +L\n" if $params->{'verbose'}; -open (LSOF, "$LSOF +L|") or die ("Cannot run $LSOF +L: $!\n"); +print STDERR "Running $LSOF -n +L\n" if $params->{'verbose'}; +open (LSOF, "$LSOF -n +L|") or die ("Cannot run $LSOF -n +L: $!\n"); my @lsof=; close LSOF; if ($CHILD_ERROR) { # program failed - die("$LSOF +L returned with non-zero exit code: ".($CHILD_ERROR / 256)."\n"); + die("$LSOF -n +L returned with non-zero exit code: ".($CHILD_ERROR / 256)."\n"); }; for my $line (@lsof) { -- cgit v1.2.3