Re: obtaining pid of child process

2010-07-25 Thread Chris Rebert
On Sun, Jul 25, 2010 at 9:02 PM, tazimk wrote: > Hi, > > I am using python's multiprocessing module to spawn new process > > as follows : > > import multiprocessing > import os > d = multiprocessing.Process(target=os.system,args=('iostat 2 > > a.txt',)) > d.start() > > I want to obtain pid of iost

obtaining pid of child process

2010-07-25 Thread tazimk
Hi, I am using python's multiprocessing module to spawn new process as follows : import multiprocessing import os d = multiprocessing.Process(target=os.system,args=('iostat 2 > a.txt',)) d.start() I want to obtain pid of iostat command or the command executed using multiprocessing module Whe