[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9380.0. "open file descriptors?" by CAMINO::MCDERMOTT () Thu Apr 03 1997 10:39

    Hi,
    
    Can someone tell me how on Digital Unix 3.2g I can  determine the
    number of file descriptors a process has open?
    
    Also is OPEN_MAX_HARD a system limit or process limit for
    open file descriptors?
    
    thanks
T.RTitleUserPersonal
Name
DateLines
9380.1use lsofNETRIX::"[email protected]"Detlef SchmierThu Apr 03 1997 11:027
> Can someone tell me how on Digital Unix 3.2g I can  determine the
> number of file descriptors a process has open?
>
I would use lsof to get this information ("lsof -p PID").

Detlef.
[Posted by WWW Notes gateway]
9380.2lsof?CAMINO::MCDERMOTTThu Apr 03 1997 11:331
    Thanks, but were can I get lsof?
9380.3kdbx fileSMURF::DUSTINThu Apr 03 1997 11:425
    You can also use "kdbx -k /vmunix" and say "file" to display
    the file table, which lists open files per process id.
    
    John
    
9380.4APACHE::CHAMBERSThu Apr 03 1997 17:397
> Thanks, but were can I get lsof?

One way:  First, I pointed my browser at http://altavista.digital.com,
typed "lsof" and hit the Submit button, and it came up with a number of
pointers to places to get it.  The first was an archive, and several others
were, too.  This is how I got my copy,

9380.5ftp://ftp.kar.dec.com/tools/lsof-4.02.tar.gzKAMPUS::NEIDECKEREUROMEDIA: Distributed Multimedia ArchivesFri Apr 04 1997 02:261
    
9380.6thanksCAMINO::MCDERMOTTFri Apr 04 1997 12:271
    Thanks, got it.  What a great tool.
9380.7what about fuser?USCTR1::ASCHERDave AscherFri Apr 04 1997 13:205
    Is there some reason why nobody mentioned "fuser". It seems
    to me that it works more reliably across versions of the o.s.
    
    d
9380.8SMURF::DENHAMDigital UNIX KernelFri Apr 04 1997 14:035
    I believe this with fuser is that it's in the SVE package and
    requires a separate license.
    
    For UNIX 98 conformance, an fuser command will have to be in
    the OS, so we'll get one everyone can use eventually.
9380.9public fuser availableALFAM7::STREPPELTue Apr 08 1997 08:337
    We hacked a public version of fuser a while ago. It works fine, has a 
    lot of useful options and we use it a lot. I put a complete gzipped
    tar file on nasaxp.rto.dec.com which can be reached via anonymous ftp.
    There is also a binary version of fuser available.
    
    Regards
    	Hartmut