[PLUG] Testing files for existence in /proc

Alex Daniloff alex at daniloff.com
Tue Jan 27 11:25:02 UTC 2004


Hello Linux folkz,
I need to test for existence files in /proc:
/proc/pid_num/cmdline
/proc/pid_num/exe
/proc/pid_num/stat
The unary file test operators in perl (-r -w -l -z and so on)
don't work in this case. I believe 'cause these files are not real.

Could somebody please advise me a better way to check
these files for existence.

Many thanks in advance,

Alex.





More information about the PLUG mailing list