windows background process

Gabriel Genellina gagsl-py at
Sat Nov 25 03:06:47 CET 2006

At Wednesday 22/11/2006 21:27, Podi wrote:

>os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'myargs') # mycmd.exe not started
>os.spawnv(os.P_NOWAIT, 'mycmd.exe', tuple('myargs')) # mycmd.exe not

os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'mycmd.exe', 'first_arg', 'second_arg')
That is, you must provide explicitely the value for argv[0] (executable)
Remember to quote appropiately any parameter with embedded spaces 
(including the executable). On Python 2.5 you could use subprocess.list2cmdline

Gabriel Genellina
Softlab SRL 

Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! -

More information about the Python-list mailing list