title: wsadmin jython script exit code to calling script
body: <p>I am writing batch and bash scripts to automate some websphere tasks.</p>
  
  <p>I need to get the exit code of myscipt.jy back to the calling script,
  jython script</p>
  
  <pre><code>#----------myscipt.jy-----------
  #I am testing exit status
  import sys;
  sys.exit(1)
  </code></pre>
  
  <p>and the batch script is </p>
  
  <pre><code>REM superduper.cmd
  profiles\myprofile\bin\wsadmin -lang jython -f myscript.jy
  echo myscript.jy exited with %ERRORLEVEL%
  </code></pre>
  
  <p>Any ideas?</p>