Re: about spawn flag
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: about spawn flag

From: Alex Martelli <aleax@mail.comcast.net>
Date: Tue Jan 31 2006 - 06:33:47 CET

Sinan Nalkaya <orome.the.valar@gmail.com> wrote:

> hi, i am using os.spawn function, it works well but i need a flag that
> allows function return the process id with exit/error code, is there
> any or how can i do it, i can replace spawn with fork/exec if
> necessary.

os.P_WAIT waits until the spawned process finishes and returns its
exit/error code from the os.spawn call.

Alex
Received on Tue Feb 7 20:19:05 2006