> p = subprocess.Popen(shlex.split("kdesu -u test program")) > > How can I aquire the PID of the program which kdesu starts? You can run "ps --ppid <p.pid>" and get the line containing test program. The first field there should be the child process id.
HTH -- Miki Tebeka <miki.teb...@gmail.com> http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list