in reply to exit status of a remote program
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=$?;
|
|---|