diff options
author | des <des@FreeBSD.org> | 2000-08-30 09:18:20 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-08-30 09:18:20 +0000 |
commit | 016415286125c33938aa6253b2f051db86353459 (patch) | |
tree | 709c8f0868ab954e19bb9f720d46ec2573912612 /usr.bin/sockstat | |
parent | 8088e796302bac8085b0236926f42e5d624b2aa9 (diff) | |
download | FreeBSD-src-016415286125c33938aa6253b2f051db86353459.zip FreeBSD-src-016415286125c33938aa6253b2f051db86353459.tar.gz |
Invoke netstat(1) and fstat(1) with full path.
Diffstat (limited to 'usr.bin/sockstat')
-rw-r--r-- | usr.bin/sockstat/sockstat.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sockstat/sockstat.pl b/usr.bin/sockstat/sockstat.pl index 02c60d1..cbd66d8 100644 --- a/usr.bin/sockstat/sockstat.pl +++ b/usr.bin/sockstat/sockstat.pl @@ -40,7 +40,7 @@ format STDOUT = $user, $cmd, $pid, $fd, $proto,$laddr, $faddr . -open NETSTAT, "netstat -Aan |" or die "'netstat' failed: $!"; +open NETSTAT, "/usr/bin/netstat -Aan |" or die "'netstat' failed: $!"; <NETSTAT>; <NETSTAT>; while (<NETSTAT>) { @@ -51,7 +51,7 @@ while (<NETSTAT>) { close NETSTAT; -open FSTAT, "fstat |" or die "'fstat' failed: $!\n"; +open FSTAT, "/usr/bin/fstat |" or die "'fstat' failed: $!\n"; while (<FSTAT>) { ($user, $cmd, $pid, $fd, $inet, $type, $proto, $sock) = split; |