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%
任何想法?