You can also use the spawn functions in os, together with the P_WAIT
mode.

os.spawnlp(os.P_WAIT, 'ls', 'ls')
gconfd-martin  kde-martin      mcop-martin   ssh-PhJzdB6333
gpg-bSRhOE     ksocket-martin  orbit-martin
0
os.spawnlp(os.P_WAIT, 'spam', 'spam')
127

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to