rsh and return code

From: fmu@OERAG.DE
Date: Wed Nov 06 2002 - 06:32:32 EST


Hi *,
      I want to start a command on a remote node (whith rsh or dsh) and
want like to know afterwards the return code

For example:

rsh <nodename> "date ; echo $?"

But I don't get the right return code. I test it with a wrong command:

# dsh -w styx "datkdajfk ; echo $?"
styx: 0
styx: ksh: datkdajfk: not found
(root:hermes)[/]

# rsh styx "datkdajfk ; echo $?"
0
ksh: datkdajfk: not found.
(root:hermes)[/]
#

Best regards,
Frank Mueller



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:18 EDT