diff options
author | Peter Palfrader <peter@palfrader.org> | 2005-09-02 17:16:36 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2005-09-02 17:16:36 +0000 |
commit | 1814879b75005e94ec796d74644f1cec0117b8b0 (patch) | |
tree | 6960bcad6f6b5c68cc36bbae63a93b2dc2527c27 | |
parent | 95bd15d07b681613f2e845aca6c1c8349924b9c5 (diff) |
Use -n
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@12 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | nagios-check-libs | 6 |
1 files 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=<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) { |