Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4596
| References | <BANLkTi=kCto8wriosiGqPipYA_cE4AYTsg@mail.gmail.com> |
|---|---|
| From | James Mills <prologic@shortcircuit.net.au> |
| Date | 2011-05-04 12:31 +1000 |
| Subject | Re: Running and killing a process in python |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1139.1304476288.9059.python-list@python.org> (permalink) |
On Wed, May 4, 2011 at 10:45 AM, Astan Chee <astan.chee@gmail.com> wrote: > Hi, > I'm trying to make a python script (in windows 7 x64 using python 2.5) to > start a process, and kill it after x minutes/seconds and kill all the > descendants of it. > Whats the best way of doing this in python? which module is best suited to > do this? subprocess? Yes start with the subprocess module: http://docs.python.org/library/subprocess.html cheers James -- -- James Mills -- -- "Problems are solved by method"
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Running and killing a process in python James Mills <prologic@shortcircuit.net.au> - 2011-05-04 12:31 +1000
csiph-web