[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PID of tcp/ip daemon





> Use fuser, for example :
> /home/lim> netstat -an
> ....
> tcp      0      0 192.114.42.30:1027      132.68.8.42:23 ESTABLISHED
> ....
> 
> /home/lim> fuser -v -n tcp 1027
> 
>                    USER        PID ACCESS COMMAND
> 1027/tcp           lim       489 f....  telnet
> 
> Thats it , fro more info take a look at man for fuser.
> 

On the same matter: Can someone tell me why the above works on one of
my systems (home, kernel 2.0.35, slackware) and does not work on my
other system (work, 2.0.33 RH)? on the work system, fuser works only
on files, not on sockets, and running fuser -h does not list the
sockets options, even though the binary is the same.



Matan Ziv-Av.        zivav@cs.bgu.ac.il