I submit a job on a remote host and want the return code of the job returned to my local server.
EG.
"rsh host jobname"
"echo $?"
shows me a rc of 0 becuase the rsh command was successfull even if the jobname failed.
How do I get the rc of the jobname ?
Hi Tison,
if 'jobname' is your own program or script you can print
return code and to catch it.
for example 'jobname' a script
.....
RetCode=4
echo $RetCode
On your box
.....
RC=$(rsh host jobname)
if [[ "$RC" = "4" ]]
......
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.