[Tutor] using python to start and stop a program

Joanna Ingrahm joanna9765 at yahoo.com
Sun Aug 10 18:35:32 EDT 2003


I have a program that I have to start using the win32
comand line. to stop it I use ctrl+c.
Now I tried to do that using python but still have
problems with it.
I can start the program and receive the pid of it
using: 

os.spawnl(os.P_NOWAIT,...

but then how can I use that information to terminate
the process again? I tried to write it in a file and
read it again but couldn't get it to work.
Appreciate any help!
Johanna

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the Tutor mailing list