catching error output

Joseph Holland King gte743n at cad.gatech.edu
Tue Feb 12 14:42:04 EST 2002


in a small script i am using the popen command to run a command 
and then parse the output:
fs = os.popen('foo some_data')
fs.readline()
...
however when foo fails i need to catch that error and be able to parse
it. is there anyway to do this? fs = .. does not catch it just the 
normal output. thanks.

--
Holland King        
gte743n at cad.gatech.edu



More information about the Python-list mailing list