ps -aux

-----Original Message-----
From: Guy Davis [mailto:guy@;yournaturewithin.com]
Sent: Wednesday, October 30, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: Grabbing a process ID


If I'm using the system command on a linux box is there any way to get the
process id returned?

I am calling another perl script and it has failed occasionally from errors
that I have not yet tracked down. What I want to do is grab and store the
process id. Then check to see if that process id is still running at a later
date when the script is re-run. 

Another question is there a way to grab the currently running processes on a
linux system and parse through them in perl? Has anyone done this or do you
know where I might get the code to do this?

Thanks

Guy Davis


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 


Reply via email to