Invoke netstat(1) and fstat(1) with full path.

This commit is contained in:
Dag-Erling Smørgrav 2000-08-30 09:18:20 +00:00
parent 2160daba07
commit 2d090923d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65249

View File

@ -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;