popen(1-4) as a seperate process
Astan Chee
stanc at al.com.au
Fri Nov 17 03:40:49 EST 2006
Dennis Lee Bieber wrote:
> On Fri, 17 Nov 2006 18:53:41 +1100, Astan Chee <stanc at al.com.au>
> declaimed the following in comp.lang.python:
>
>
>
>> What would be a good method to do this? I've tried your
>> os.system("command&") and the spawned process is still the child of the
>> current running process (which is not what I want to happen).
>> Thanks again and sorry for the confusion.
>>
>
> The & trailer is UNIX/LINUX specific for detaching a process. There
> may be other commands needed for Windows. Especially as, I think, the &
> syntax can create processes that remain running even if the user logs
> off... Something Windows doesn't really support.
>
> Windows os.startfile(...) MIGHT do what you want
>
Yes I know & works in unix/linux; I thought it worked in windows also.
But thanks, os.startfile() worked perfectly.
Cheers
More information about the Python-list
mailing list