Additionally, if you're looking for a particular process, you could do:

ps -aux | grep "processname"

That will limit the output only to the particular thing you're looking
for, but will show all instances of it.

Cheers, 
Charlotte

> -----Original Message-----
> From: Tucker, Ernie [mailto:ETucker@;chartercom.com] 
> Sent: Wednesday, October 30, 2002 2:48 PM
> To: 'Guy Davis'; [EMAIL PROTECTED]
> Subject: RE: Grabbing a process ID
> 
> 
> 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]

Reply via email to