bash command, get stdErr
affdfsdfdsfsd at b.com
Fri Aug 26 11:20:02 CEST 2011
Il Fri, 26 Aug 2011 01:20:02 -0700, Chris Rebert ha scritto:
> On Fri, Aug 26, 2011 at 12:56 AM, Tracubik <affdfsdfdsfsd at b.com> wrote:
>> Il Thu, 25 Aug 2011 01:52:25 -0700, Chris Rebert ha scritto:
>>> On Thu, Aug 25, 2011 at 1:25 AM, Tracubik <affdfsdfdsfsd at b.com> wrote:
>>>> Hi all!
>>> from subprocess import Popen, PIPE sudo = Popen("sudo las",
>>> 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
>> mmm, it doesn't seem to work...
> How so? Seems to work in an admittedly dirt simple test where I do
> You might need to fiddle with buffering settings depending on how you're
> processing the output.
oh, yeah! now it work thanks!
don't really know why it wasn't working yesterday, i've retried today and
it work very well :-D
More information about the Python-list