Getting return code for a Python script invoked from a Linux shell script

volcano mark.geyzer at
Wed Sep 23 18:51:29 CEST 2009

Hi, folks,
I have a Python script that is invoked by a shell script. I uses
sys.exit() with a parameter within python.

The calling script is using this line to get the return code:
exit_code = !$

but it fails to get it. What's wrong here? (I am no Linux guru)

Thanks in advance

More information about the Python-list mailing list