SUMMARY: open files by pid

Tom Erickson (Thomas.M.Erickson.1@gsfc.nasa.gov)
Mon, 23 Feb 1998 14:52:23 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello again everyone...

My original query was:

> Does anyone know of a way to list open files by pid?

The overwhelming response was to use lsof (list open files).
It is available at:

ftp://vic.cc.purdue.edu/pub/tools/unix/lsof
http://smc.vnet.net

Other responses included fuser and /usr/proc/bin/pfiles.
I think that lsof certainly is more flexible and provides the
development community a tool to assist with debug.
fuser is nice but I need to know the filename ahead of
time and pfiles is nice too but it gives me inodes instead
of file names which I then have to go thru additional
gyrations to figure out.

And many thanks to all all that responed:

Jon Anderson <jon.anderson@gs.com>
"G. Dimitoglou" <george@esa.nascom.nasa.gov>
Rahul Roy <uroy@eadev1.vanguard.com>
Thomas Leitner <tom@finwds01.tu-graz.ac.at>
"Ian Wallace" <iwallace@bcoe.bm>
Rich Snyder <rsnyder@eos.EAST.HITC.COM>
David Thorburn-Gundlach <david@bae.uga.edu>
Mike Blandford <mikey@nmsu.edu>
"Iskander, Tim" <ISKANDER@infimed.com>
Igor Schein <igor@andrew.air-boston.com>
X-Sender: igor@daria
anders@hmi.de (Thomas Anders)
Dan Pritts <danno@ans.net>
Daniel Kluge <danielk@tibco.com>
Mattias Zhabinskiy <mattias@txc.com>
Jay Lessert <jayl@latticesemi.com>
foster@bial1.ucsd.edu
Jeff Graham <demit@best.com>
Eugene Kramer <eugene@uniteq.com>

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBNPH9pvbFIAysUkIGEQKCOgCgoipP7Y6fBnd9llr04kwZuiE/oPYAnR/5
exm0OSqi5RDT6umx/m5HVgXz
=4f/v
-----END PGP SIGNATURE-----

NASA Goddard Space Flt. Ctr. - RMS Information Systems, Inc.
Data Systems & Technology Division - System Administrator
Thomas.M.Erickson.1@gsfc_dot_nasa_dot_gov
(For email address to work, replace "_dot_" with ".")
301.286 1439 ('ma-bell)
301.286 1768 (fax)