What do you mean by 'Python way' and 'not related to Python'? How is parsing the output of 'ps' different from the method used in recipe 286222? /Jean Brouwers