|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Alternatives to /proc filesystem
From: Federico Giannici (giannici
neomedia.it)
Date: Tue May 02 2006 - 03:39:17 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
--
___________________________________________________
__
|- giannici
neomedia.it
|ederico Giannici http://www.neomedia.it
___________________________________________________
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]