Help with RSH error status return

Guy Harris guy at auspex.auspex.com
Sat Jul 15 05:10:12 AEST 1989


 >But what I WANT to do is to have 
 >
 >           rsh B dumb_script
 >
 >have a return error status equal to the return error status
 >of the program which ran on machine B (that is, 3 in this
 >case)
 >
 >Any hints/tips/ideas/pointers to the proper man pages/etc?

The only pointer is to the code, which I just checked; there's no way to
do it.  "rsh", at least in the 4.3BSD and 4.3-tahoe versions (from which
most if not all other versions are derived) always exits with an exit
status of 0, 1, or 2; it pays no attention to the exit status of the
remote command (it may not even be able to *get* that exit status; a
quick check of the RSHD(8C) man page doesn't indicate that the daemon
even provides that to "rsh").



More information about the Comp.unix.questions mailing list