Port Problem
Edward Glowacki
glowack2@msu.edu
Fri, 7 Jul 2000 13:47:44 -0400 (EDT)
On Fri, 7 Jul 2000, Adam wrote:
> (user1)sapphire:~ % sockstat
> USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
> root sshd 28510 4 tcp4 24.2.221.222.22 24.13.43.216.61654
> root sshd 28510 6 tcp4 *.6013 *.*
> atlas ftpd 27850 0 tcp4 24.2.221.222.21 38.32.27.46.1263
> atlas ftpd 27850 1 tcp4 24.2.221.222.21 38.32.27.46.1263
> atlas ftpd 27850 6 tcp4 24.2.221.222.20 38.32.27.46.1270
> user1 gaim 23888 5 tcp4 24.2.221.222.1280 24.2.221.222.6010
> user1 gaim 23888 8 tcp4 24.2.221.222.1281 205.188.153.139.98
Oooo....
> He shoots off the rebound, he sco0o0o0o0o0o0o0o0o0o0res!@!@!!@ on glowack2
> Hey, you can appreciate a handy command now :)
>
> mumblings:
> (user1)sapphire:~ % file `which sockstat`
> /usr/bin/sockstat: perl commands text
> (user1)sapphire:~ % egrep {netstat\|fstat} `which sockstat`
> open NETSTAT, "netstat -Aan |" or die "'netstat' failed: $!";
> open FSTAT, "fstat |" or die "'fstat' failed: $!\n";
ROFL, perl wrapper to fstat and netstat... ;) And here I thought it
was an actual program... =P
--
Edward Glowacki glowack2@msu.edu
Network Services
Michigan State University