Traping output from os.system

f98ba at efd.lth.se f98ba at efd.lth.se
Sun Jul 2 05:48:10 EDT 2000


Hi,

I'm executing a command with os.system and are
trying to capture the output into a python
variable. The only I can find to do it in
at the moment is to redirrect the output
to a file and the read it. That feels wrong,
isn't there another simple way??

Thanks,
Bjorn



More information about the Python-list mailing list