Hi, there,
I want to excute the remote command shell via "remsh", are there any simple or best way to get the result of remote shell from local ? thanks.
ret_value=`rsh host "command1 ; command2 ; echo $?"`
Regards
chaining works too:
retval=`rsh hostname "command1 && echo "OK1" && command2 && echo "OK"`
- tells you which command failed;
plus it stops if command1 fails and doesn't do command2 which can be good sometimes