On Sun, 16 Oct 2005 22:14:05 +0800, Christopher Spears <[EMAIL PROTECTED]> wrote:

Does Perl have the equivalent of ps in Unix?

Check out  Proc::ProcessTable module
They have nice API for it.

or can you try this?

perl -e'print `ps --no-header -p$$ -osz`'

This is just an example snippet to measure total memory used up
with our script.

Hope that helps.

--
Regards,
Edward WIJAYA
SINGAPORE

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to