tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* rsh and exit codes
@ 2004-04-22 22:30 Browett, Darren
  0 siblings, 0 replies; only message in thread
From: Browett, Darren @ 2004-04-22 22:30 UTC (permalink / raw)


Hi Managers

I have a small script, exit_code.sh that has a "exit 1" in it.
If I run the command locally then do a echo $? I receive 1 (one) as the
answer.

But if I run it through rsh, then answer to echo $? is always zero.
(see script below)

Is that the expected behaviour ? 

if it is,  does anybody know of a way I can capture the exit code of a
remotely executed script.

Thanks

Darren

This is Tru64 5.1b, patch kit 3.

script to test exit code :

#!/bin/sh

for iHOST in trac1 trac2 ; do

rsh $iHOST "/ora/dba/sbin/exit_code.sh ; echo $?"

done





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-22 22:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 22:30 rsh and exit codes Browett, Darren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox