on Wed, 30 Oct 2002 19:48:24 GMT, [EMAIL PROTECTED] (Guy
Davis) wrote: 

> 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. 

Have your script write its pid to a file.

> 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? 

See e.g.

        http://perl.oreilly.com/cookbook/prog_psgrep.html

-- 
felix

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

Reply via email to