[英]linux - execute qsub get script return value
I execute the command: 我执行命令:
qsub ./try.sh
the script try.sh returns 1 脚本try.sh返回1
but if I try to execute "$?
" to get the last return code, it will give me 0 - the qsub
command's return code. 但是,如果我尝试执行
"$?
”以获取最后的返回代码,它将给我0- qsub
命令的返回代码。
how can I get the script's return value? 如何获得脚本的返回值?
thanks! 谢谢!
qstat -f <job_ID>
包含具有脚本返回值的exit_status
行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.