The return code

Jeremiah Dodds jeremiah.dodds at gmail.com
Thu Nov 13 10:00:31 EST 2008


On Thu, Nov 13, 2008 at 7:15 AM, devi thapa <devi.thapa at gmail.com> wrote:

> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list
>


Well, I would perhaps start by finding out what the return codes mean. And
then I would move on to figuring out why they would be different in the
script, and then making the appropriate changes. It's probably a difference
in how the "service" is called, or the environment it's called in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081113/a235e12f/attachment-0001.html>


More information about the Python-list mailing list