Stephen Takacs wrote:
Instead of compiling a custom kernel, what is the best way (in Perl) to
get the list of current processes?

I have to scan the list every few seconds. A couple of years ago, I
tried executing an external "ps", but found that it sometimes "freezed".
I found the scanning of the "/proc" filesystem much more stable...

Perhaps a buffering issue?  Try setting $| to a true value, if you
haven't already done that.

The problem with using "ps" is that I'd like to avoid spawning new processes as it should run in high load situations too...


Bye.

--
___________________________________________________
    __
   |-                      [EMAIL PROTECTED]
   |ederico Giannici      http://www.neomedia.it
___________________________________________________

Reply via email to