This is only useful if you don't need the regular output from "somecommand". Note that it just has the remote shell output it's last command status variable. If the remote shell is csh, you'd have to echo $status instead of $?.$status=`rsh $machine somecommand >> /dev/null 2>&1;echo $?`; $rshstatus=$?;
In reply to Re: exit status of a remote program
by kschwab
in thread exit status of a remote program
by lucarey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |