<br><br><div class="gmail_quote">On Thu, Nov 13, 2008 at 7:15 AM, devi thapa <span dir="ltr"><<a href="mailto:devi.thapa@gmail.com">devi.thapa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
          I am running one service in the python script eg like<br>
"service httpd status".<br>
If I execute this command in normal shell kernel, the return code is<br>
3. But in the python script its return code is different, ie not 3, I<br>
mean to say that return codes are differing.<br>
But I want the return code  3 , not the other one. So, how can I achieve this?<br>
<br>
Regards,<br>
Devi.<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br>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.<br>