Finding child pids

Tom Chance tomchance at gmx.net
Mon Mar 17 07:46:51 EST 2003


>> How can I get the pid of the command, and not just sh?
> 
> Don't use a string. Use a list of strings with one string for each
> argument. E.g. instead of
> 
> "mycommand arg1 arg2" use ["mycommand", "arg1", "arg2"]

Aha! Thank you, that works perfectly. Running external programs is always
such a pain! ;)

Tom




More information about the Python-list mailing list