"wormwood_3" <[EMAIL PROTECTED]> wrote

>  want to basically spawn the process so it keeps running regardless
> of what the script does next (like running something with " &" after 
> it in linux).

Umm, so just put the ampersand at the end of the command string and
call os.system()

> All I ended up having to do was:
>>>> import commands
>>>> commands.getoutput("gnome-terminal")

However both os.system and the commands module are deprecated in 
favour
of the new(ish) subprocess module where the equivalent incantation 
would be:

p = subprocess.Popen("gnome-terminal", shell=True)HTH,-- Alan 
GauldAuthor of the Learn to Program web 
sitehttp://www.freenetpages.co.uk/hp/alan.gauld 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to