[英]How to return wlst python value to shell
I am launching a wlst python script like this : 我正在启动这样的wlst python脚本:
cmd file : cmd文件:
call /oracle_common/common/bin/wlst.cmd myWlstScript.py
PAUSE
The python script is checking if a datasource is up : python脚本正在检查数据源是否启动:
connect('XXXX','XXXX','t3://XXXX.local:XXXX')
serverRuntime()
dsMBeans = cmo.getJDBCServiceRuntime().getJDBCDataSourceRuntimeMBeans()
#Do stuff to check datasource state
How can i return a value from the wlst python script to the cmd file ? 如何将wlst python脚本中的值返回到cmd文件? (or shell)
(或外壳)
To return a value from the wlst python script to the cmd file in my simple case, i did the following : 在我的简单情况下,要将wlst python脚本的值返回到cmd文件,我执行了以下操作:
python wlst python wlst
exit(exitcode=3)
cmd 命令
IF %ERRORLEVEL% EQU 3 echo it worked
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.