os.popen output different from native shell output
Thomas Guettler
hv at tbz-pariv.de
Tue Aug 25 06:18:59 EDT 2009
hi,
you get the popen output like this:
user at unixhost> ls | cat
nickname schrieb:
> Hi all,
> I am a relative newbie to python, I am using os.popen to run an
> ls command. The output that I get using the read() function is
> different in look and feel from when I run the ls command natively
> from the shell (not via python). I display the ouput via python by
> using the print function on the variable that accepts the os.popen
> ().read() function.
...
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
More information about the Python-list
mailing list