Il Thu, 25 Aug 2011 01:52:25 -0700, Chris Rebert ha scritto:

> On Thu, Aug 25, 2011 at 1:25 AM, Tracubik <affdfsdfds...@b.com> wrote:
>> Hi all!

cut

> Untested:
> 
> from subprocess import Popen, PIPE sudo = Popen("sudo las", shell=True,
> stderr=PIPE)
> tee = Popen(["tee", "/dev/stderr"], stdin=sudo.stderr, stdout=PIPE)
> # Read from tee.stdout to get any error messages
> 
> Further info: http://en.wikipedia.org/wiki/Tee_%28command%29
> 
> Cheers,
> Chris

mmm, it doesn't seem to work... any other hints guys?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to