SUMMARY:Query sockets owned by process

From: Christoph Liebig (chris@dvs1.informatik.th-darmstadt.de)
Date: Mon Jul 21 1997 - 08:03:05 CDT


Hi.

My question was:

> Is there a way to find out about which sockets a process has created - maybe
> one can use some proc tools ?
> Can I associate process information to the output of 'netstat -a -f inet' ?
>

The answer is: yes, use program 'lsof -i internet_adress', where
 internet_adress is of the form [protocol][@hostname|hostaddr][:service|port]

lsof can be found at:
 ftp://vic.cc.purdue.edu/pub/tools/unix/lsof
 http://smc.vnet.net/solaris_2.5.html (binaries, too :)

Thanks to

Chris Medaglia <medaglia@testmail.putnaminv.com>
"Aggelos P. Varvitsiotis" <avarvit@cc.ece.ntua.gr>

--Chris



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:59 CDT