From: Jouni K S. <jk...@ik...> - 2006-03-08 13:42:22
|
Darren Dale <dd...@co...> writes: > Does anyone know how to catch exit status using os.popen and > friends? LaTeX would have returned an exit status of 1 for this > example, which could be used to raise a warning. I think you should get the exit status from the close() method, and http://docs.python.org/lib/os-newstreams.html seems to confirm this. Strangely, popen2 etc do not allow you to get the exit status. -- Jouni |