Re: need help to kill a process

2007-02-07 Thread Gabriel Genellina
En Wed, 07 Feb 2007 16:50:55 -0300, <[EMAIL PROTECTED]> escribió: >> import subprocess >> child1 = subprocess.Popen(["./TestTool"], cwd="/home") >> child2 = subprocess.Popen(["sh","run.sh","load.xml"], cwd="/usr") >> >> Popen objects have a pid attribute. You don't have to use os.system to >> kill

Re: need help to kill a process

2007-02-07 Thread elrondrules
On Feb 6, 8:24 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 06 Feb 2007 22:59:40 -0300, <[EMAIL PROTECTED]> escribió: > > > > > > > this is my code snip. > > within my python script I have the following commands.. > > > > > > import os > > ... > > os.system ("cd /home; ./TestTool &

Re: need help to kill a process

2007-02-06 Thread Gabriel Genellina
En Tue, 06 Feb 2007 22:59:40 -0300, <[EMAIL PROTECTED]> escribió: > this is my code snip. > within my python script I have the following commands.. > > > > import os > ... > os.system ("cd /home; ./TestTool &") > os.system ("cd /usr/; sh run.sh load.xml &") > > > > I need to kill these 2 process

need help to kill a process

2007-02-06 Thread elrondrules
Hi Am new to python and need your help!! this is my code snip. within my python script I have the following commands.. import os ... os.system ("cd /home; ./TestTool &") os.system ("cd /usr/; sh run.sh load.xml &") I need to kill these 2 process after a particular job is done.. is there any