How to use exist status to return to a cling script

#-----------exit.sh-----------
#!/bin/sh
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/wsadmin.sh -f /var/stever/shell/exit.py
echo "Exit status=" $?
#----------exit.py-----------
#I am testing exit status
import sys;
sys.exit(1)
Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply