On Sun, Jul 25, 2010 at 08:28:54PM -0700, tazimk wrote: > 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 in which this command is running .
One way could be to traverse the list of all processes and find out the right iostat process using the parent pid. However, I think there should be simpler ways depending on why you need the pid. Besides, you seem to start iostat in continuous mode; so you probably read from the file you redirected the output to. In this case, you could also use a pipe if it suits your needs. With kind regards, Baurzhan. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

