Repost: Read a running process output

Alain Ketterlin alain at dpt-info.u-strasbg.fr
Fri Feb 5 07:12:55 EST 2010


Ashok Prabhu <ashokprabhuv at gmail.com> writes:

> from subprocess import *
> p1=Popen('/usr/sunvts/bin/64/vtsk -d',stdout=PIPE,shell=True)

Use Popen(['/usr/...','-d'],stdout=PIPE), i.e., no shell.

-- Alain.



More information about the Python-list mailing list