Re: Admin util wish list

Andrew C. Esh (andrewes@cnt.com)
Thu, 18 Jul 1996 09:11:07 -0500


>>>>> "Todd" == Todd Graham Lewis <tlewis@mindspring.com> writes:

...

Todd> BSD fstat gives the following:

Todd> USER CMD PID FD MOUNT INUM MODE SZ|DV R/W tlewis zsh 27363
Todd> wd /usr 20307 drwxr-xr-x 512 r tlewis zsh 27363 0 / 4274
Todd> crw--w---- ttyp0 rw tlewis zsh 27363 1 / 4274 crw--w----
Todd> ttyp0 rw

Todd> I can't get fuser to give me anything close to this level of
Todd> detail, much less list all files presently being accessed by
Todd> any processon the system.

This is all very interesting. Here's one I'd like to have: A netstat
that lists the PID for the process that has a connection open. Many
times I can look at netstat output, and see open connections, but I
have no way of knowing which process (or more specifically, which
user) has that connection open.

Or is it just me being stupid, and there *is* a way of doing this?

--
Andrew C. Esh			mailto:andrew_esh@cnt.com
Computer Network Technology	andrewes@mtn.org (finger for PGP key)
6500 Wedgwood Road		612.550.8000 (main)
Maple Grove MN 55311		612.550.8229 (direct)
http://www.cnt.com - CNT Inc. Home Page
http://www.mtn.org/~andrewes - ACE Home Page