User Profile

Collapse

Profile Sidebar

Collapse
sunyao
sunyao
Last Activity: Jul 15 '07, 12:10 AM
Joined: Sep 17 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sunyao
    replied to How to get correct exit code from Python
    Hi Kudos,

    Thanks for your response. I will try using other value.
    Thanks again.

    Sunny
    See more | Go to post

    Leave a comment:


  • sunyao
    started a topic How to get correct exit code from Python

    How to get correct exit code from Python

    Hi Friend,

    I write a linux shell script to call a python script inside. But I got a wrong exit code from Python exit code. The linux shell script as follows;

    #!/bin/bash
    MyPython.py
    exit $?

    After run the above linux script, I always got exit code 0. But autually the Python log file shows that its exit code is 256. In python script, use sys.exit(256).

    My question is how linux...
    See more | Go to post
No activity results to display
Show More
Working...