On Tue, Oct 13, 2015 at 01:51:31PM -0500, David Champion wrote: > The return from python's os.system is not the same as the exit status. > You need os.WEXITSTATUS(os.system(command)), which should be 0, or > success.
Although this is system-dependent, one popular implementation has: #define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) so if system() returned 256 then the exit code was most likely 1, or failure. However, this does not tell you why it failed - need to look elsewhere for that. imc
