> 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment