Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: Help with RSH error status return Message-ID: <2238@auspex.auspex.com> Date: 14 Jul 89 19:10:12 GMT References: <201@camdev.UUCP> Reply-To: guy@auspex.auspex.com (Guy Harris) Distribution: usa Organization: Auspex Systems, Santa Clara Lines: 18 >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").