Hi,

I am using python's multiprocessing module to spawn new process

as follows :
Code:
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

When I execute :

d.pid

it gives me pid of subshell...