[comp.unix.wizards] Problem with rexec

montnaro@sprite (Skip Montanaro) (03/29/88)

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)