Re: currently opened file descriptors

2006-08-04 Thread Andreas Kahari
fstat -p thepid_of_my_process Repeat for the child processes. It's easier if you start with a child process though... pid=5902 while (( $pid != 1 )); do pid=$(ps -o ppid -o ppid= -p $pid) fstat -p $pid done Regards, Andreas On 04/08/06, Stephan A. Rickauer <[EMAIL PROTECTED]> wrote: How c

Re: currently opened file descriptors

2006-08-04 Thread Stephan A. Rickauer
Sebastian Benoit wrote: > Stephan A. Rickauer([EMAIL PROTECTED]) on 2006.08.04 09:20:09 +: >> How can one list the number of file descriptors a shell and any >> processes created by that shell are currently opened? > > fstat (1) > > /B. brilliant. Thanks. -- Stephan A. Rickauer --

Re: currently opened file descriptors

2006-08-04 Thread Sebastian Benoit
Stephan A. Rickauer([EMAIL PROTECTED]) on 2006.08.04 09:20:09 +: > How can one list the number of file descriptors a shell and any > processes created by that shell are currently opened? fstat (1) /B.

currently opened file descriptors

2006-08-04 Thread Stephan A. Rickauer
How can one list the number of file descriptors a shell and any processes created by that shell are currently opened? I've learned 'sysctl kern.nfiles' from the archives but believe this is the overall number of opened file descriptors, isn't it? Thanks, -- Stephan A. Rickauer --