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
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
--
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.
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
--
4 matches
Mail list logo