What processes are on the ends of a TCP connection?

Marc Teitelbaum marc at ucbvax.BERKELEY.EDU
Thu Mar 16 19:34:45 AEST 1989


We have a new utility which displays the per process open file
tables.  If the file is a TCP socket, it prints the address of the
tcpcb (exactly what netstat -A prints - this is no accident).
Finding the associated process(s) is simply a matter of noting the
address from netstat -A and doing a "fstat | grep (address)".
Unless I'm mistaken, fstat(1) was shipped in 4.3-tahoe, and will
be present in the next release.

Marc
-------------------------------
Marc Teitelbaum			+1-415-643-6448
457 Evans Hall
Computer Systems Research Group,  CSRG / DEC
University of California
Berkeley, CA 94720



More information about the Comp.unix.wizards mailing list