SUMMARY - Files currently open in a process

From: Fintan Keeling (fintan_keeling@horizon.ie)
Date: Wed Aug 17 1994 - 23:48:37 CDT


Hi all,
        Apologies for obviously a well-known question and its
answer. I received a few answers rather quickly. lsof
figured in all answers. In addition, Larry tells me about
HP-Glance Plus which looks very useful. Special thanks to Nate
for ftp ls listing and to Dave for manual entry.

Thanks to all who responded.

"Larry J. Miller" <ljm@halsp.hitachi.com>
 Syed Zaeem Hosain <szh@zcon.com>
 Michael Seeger <see@uebemc.siemens.de>
"Mark G. Owens" <motech!owens@ucsd.edu>
 Nate Itkin <Nate-Itkin@ptdcs2.intel.com>
 Dave Fetrow <fetrow@biostat.washington.edu>

The original query is below followed by all responses.

                                Best of Irish,
                                                Fintan Keeling.

_______________________________________________________________
From: "Larry J. Miller" <ljm@halsp.hitachi.com>
I use a commercial program called HP-Glance Plus. It runs on HPs, SUNS, and
Solaris. It is an excellent program that monitors CPU, Memory, Disk, and
Network usage. And with a few clicks, you can select a process, and then
another click to see all open files associated with that process. I HIGHLY
recommend it!!

From: Syed Zaeem Hosain <szh@zcon.com>
Archie for "lsof". It does exactly what your colleague wants.

From: Michael Seeger <see@uebemc.siemens.de>
Sorry for this beeing so late, i was on holiday for a long weekend
What you are looking for is called lsof, Sources available for example
from wuarchive.wustl.edu:/languages/c/unix-c/sysadmin/lsof.tar.Z
or ask archie for your next ftp-server.

Works fine for both 4.1.x and 5.x

From: "Mark G. Owens" <motech!owens@ucsd.edu>
Try lsof...avalible from your favorite ftp site. I will give you
a list of ALL open files (be they sockects, files, or devices).
It runs under 4.1.x, haven't tried it on Solaris 2.x yet.

From: Nate Itkin <Nate-Itkin@ptdcs2.intel.com>
SunOS 4.1.x is very easy. You want to get a copy of lsof - does exactly
what you want. Maybe someone has ported it to Sodaris by now - I haven't
looked at version 3.05.

        Host coast.cs.purdue.edu.
        Location: /pub/tools/unix/lsof
           FILE -rw-rw-r-- 3501 Aug 2 13:24 lsof.README
           FILE -rw-rw-r-- 108018 May 24 12:38 lsof236tar.gz
           FILE -rw-rw-r-- 313397 Jul 27 04:09 lsof_3.05.tar.Z
           FILE -rw-rw-r-- 188694 Jul 27 04:09 lsof_3.05.tar.gz

From: Dave Fetrow <fetrow@biostat.washington.edu>
 I believe the infinitely wonderful lsof program can do this.

LSOF(8) MAINTENANCE COMMANDS LSOF(8)
 
NAME
     lsof - list open files
 
SYNOPSIS
     lsof [ -dhlLnNostTU ] [ -c c ] [ -i i ] [ -k k ] [ -p l ] [
     -u l ] names
 
DESCRIPTION
     Lsof version 2.16 lists information about files opened by
     processes for the following operating systems:
 
          AIX 3.2 for the IBM RISC/System 6000
          Dynix 3.0.12 and 3.1.2 for the Sequent Symmetry S81
          EP/IX 1.4.3 for the CDC 4680
          ETAV (SYSV3.1 with Lachman TCP/IP 3.0) for the ETA-10P*
          HP-UX 7.x and 8.x for Hewlett Packard work stations
          IRIX 4.0.5 for the Silicon Graphics Indigo
          NeXTStep 2.1 and 3.0 for the NeXT Work Station
          SunOS 4.1.1, 4.1.2 and 4.1.3
           SunOS 5.1 (Solaris 2.1)
 
     (Previous versions of lsof worked under AIX 3.1.[357],
     NeXTStep 2.0 and SunOS 4.1, but lack of access to these
     platforms has prevented testing the current version on
     them.)
 
     An open file may be a regular file, a directory, a block
     special file, a character special file, an executing text
     reference, a library, a stream or a network file (Internet
     socket, NFS file or Unix domain socket.) A specific file may
     be selected by its path name.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:08 CDT