the system command does not return pids. it only returns error status
numbers(constants).
check perldoc -f system for more info.

your best bet is to fork another process (of the other perlscript your are
calling) .
for info see:
perldoc -f fork
perldoic perlipc

and you should find tons of recent information on forking in the recent
archives of this mail list:
http://archive.develooper.com/beginners@;perl.org/

> -----Original Message-----
> From: Guy Davis [mailto:guy@;yournaturewithin.com]
> Sent: Wednesday, October 30, 2002 2: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]
> 
> 


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

Reply via email to