Path: utzoo!mnetor!uunet!steinmetz!montnaro@sprite From: montnaro@sprite (Skip Montanaro) Newsgroups: comp.unix.wizards Subject: Problem with rexec(3) call on Sun Message-ID: <10138@steinmetz.steinmetz.ge.com> Date: 28 Mar 88 20:44:06 GMT Sender: news@steinmetz.steinmetz.ge.com Reply-To: montnaro@sprite (Skip Montanaro) Organization: GE Corporate Research & Development Lines: 11 Summary: How do you get exit status from the remote command? To: sun-spots@rice.edu I'm using the rexec(3) library routine on a Sun, running SunOS 3.4. I can spin off the remote command okay, and get both the command's stdout and stderr back for display. I can't find a way to get the exit status of the command, however. Since the remote commands can be any valid command, parsing the messages on stderr is not sufficient to determine success or failure. Is there some way to get the exit status other than to doctor up the remote command string to print out '$?'? Thanks, -- Skip Montanaro (montanaro@sprite.steinmetz.ge.com, montanaro@ge-crd.arpa)