I don't think I understand popen2() behaviour
Timothy Grant
tjg at exceptionalminds.com
Mon Feb 12 14:09:48 EST 2001
On Mon, Feb 12, 2001 at 07:48:35PM +0100, Siggy Brentrup wrote:
> > I wouldn't see them until I did a y.readlines() or something.
>
> popen2 connects the command's stdin and stdout, but not to stderr.
>
>
> > So, obviously I don't understand something, but I'm not even sure
> > what it is I don't understand yet!
>
> Try the following:
>
> >>> cld = popen2.Popen3('tail -f /var/log/messages', 1)
>
> For details cf.
> http://www.python.org/doc/current/lib/popen3-objects.html
>
Hmm, another case of my brain interpreting what I read in light of what my
brain wanted me to read.
Thanks for the pointer. I'll try and pay closer attention next time.
--
Stand Fast,
tjg.
Timothy Grant tjg at exceptionalminds.com
Red Hat Certified Engineer www.exceptionalminds.com
Avalon Technology Group, Inc. (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted: 26 days 23:20 hours ago<<
More information about the Python-list
mailing list