0
我正在编写批处理和bash脚本来自动化一些websphere任务。wsadmin jython脚本退出代码到调用脚本
我需要得到myscipt.jy的退出代码返回给调用脚本, Jython脚本
#----------myscipt.jy-----------
#I am testing exit status
import sys;
sys.exit(1)
和批处理脚本是
REM superduper.cmd
profiles\myprofile\bin\wsadmin -lang jython -f myscript.jy
echo myscript.jy exited with %ERRORLEVEL%
任何想法?