Hugo González Monteverde
hugonz-lists at h-lab.net
Sun Nov 28 19:26:05 CET 2004
Maybe the output you're trying to get is in STDERR and not STDOUT?? I've
had to deal with this a number of times, so may I wrote a Tkinter script
to let me know what output is to STDERR and what is to STDOUT. os.popen
will open STDOUT if invoked with "r" (which is the default).
Try looking of other popen* functions. They provide STDOUT + STDERR
(popen4) or separate STDOUT + STDERR (popen3)
BTW< if you'd like to have my script (the Streamshower, I call it =) )
just email me ...
Klas Marteleur wrote:
> I have a little problem that is confusing me.
> If i write the following in a bash shell i get the desired output:
> [klas at h180n2fls32o849 klas]$ kwrite -v
> Qt: 3.2.3
> KDE: 3.2 BRANCH >= 20040204
> KWrite: 4.2
> It also works in a python shell...
> ['Qt: 3.2.3\n', 'KDE: 3.2 BRANCH >= 20040204\n', 'KWrite: 4.2\n']
> If i try the following in a bash shell, it also workes:
> [klas at h180n2fls32o849 klas]$ tccat -v
> tccat (transcode v0.6.12) (C) 2001-2003 Thomas Oestreich
> But if i try the same in a python shell i get:
> Not even if i specify the path it works.
> What am i missing?
> Kind Regards
> Tutor maillist - Tutor at python.org
More information about the Tutor