The return code

devi thapa devi.thapa at gmail.com
Thu Nov 13 07:15:26 EST 2008


Hi,

          I am running one service in the python script eg like
"service httpd status".
If I execute this command in normal shell kernel, the return code is
3. But in the python script its return code is different, ie not 3, I
mean to say that return codes are differing.
But I want the return code  3 , not the other one. So, how can I achieve this?

Regards,
Devi.



More information about the Python-list mailing list