Problem with rexec(3) call on Sun

Skip Montanaro montnaro at sprite
Tue Mar 29 06:44:06 AEST 1988


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 at sprite.steinmetz.ge.com, montanaro at ge-crd.arpa)



More information about the Comp.unix.wizards mailing list