>> 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