Re: windows background process

2006-11-27 Thread Podi
Gabriel Genellina wrote: > 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 coul

Re: windows background process

2006-11-24 Thread Gabriel Genellina
At Wednesday 22/11/2006 22:05, Podi wrote: Some update... I just found out that the following seems to work, import subprocess subprocess.Popen(' myargs', executable='mycmd.exe') However, it does not work with "my path\\mycmd.exe" subprocess.Popen(' myargs', executable='"my path\\mycmd.exe"'

Re: windows background process

2006-11-24 Thread Gabriel Genellina
At Wednesday 22/11/2006 21:27, Podi wrote: 3. os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'myargs') # mycmd.exe not started os.spawnv(os.P_NOWAIT, 'mycmd.exe', tuple('myargs')) # mycmd.exe not started os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'mycmd.exe', 'first_arg', 'second_arg') That is, you must provide

Re: windows background process

2006-11-22 Thread Podi
Some update... I just found out that the following seems to work, import subprocess subprocess.Popen(' myargs', executable='mycmd.exe') However, it does not work with "my path\\mycmd.exe" subprocess.Popen(' myargs', executable='"my path\\mycmd.exe"') # error -- http://mail.python.org/mailman/

windows background process

2006-11-22 Thread Podi
Hi, I am using Python 2.4.4 on Windows XP SP2. I am trying to start a process (infinite loop application) in the background and I've tried several options and none of them seem to work. Any help would be much appreciated. Thanks, P 1. # This works on PythonWin interactive window, but the pytho