RE: popen and error handling
Jaap Vermeulen (jaap@sequent.com)
Tue, 09 Nov 93 13:13:00 PST
| eg. fh = popen('rubbish','r') doesn't raise an exception so how can I
| tell the difference between failed execution and no output ?
Check the value of fh.close(). It will return the exit value of the command
(or whatever the shell returns when it cannot find the command; popen uses
/bin/sh to execute the command).
-Jaap-