Newbie question...

Paulo Soares psoares at consiste.pt
Fri May 21 08:45:11 EDT 1999


I have just answered this. Check the messages with the subject "Win32
blocking spawn".

Best Regards,
Paulo Soares

> -----Original Message-----
> From:	Christian Tellefsen [SMTP:christian.tellefsen at electricfarm.no]
> Sent:	Friday, May 21, 1999 12:48
> To:	python-list at cwi.nl
> Subject:	Newbie question...
> 
> ... I just started programming in Python (today!)
> 
> I want to run a few OS commands from python (on Win NT),
> but I cannot find a way to wait for the commands to finish.
> 
> Source:
> **
> os.system ('c:\ntreskit\sc stop "' + serviceA + '"')
> os.system ('c:\ntreskit\sc stop "' + serviceB + '"')
> os.system ('c:\ntreskit\sc stop "' + serviceC + '"')
> **
> 
> Is there a way I can ensure that each command finishes before the next
> line
> in the script is executed?
> 
> Sorry if this has been asked before!
> 
> Yours,
> Christian Tellefsen
> (christian.tellefsen at electricfarm.no)
> 
> 
> 




More information about the Python-list mailing list