Path: utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!mlb.semi.harris.com!thrush.mlb.semi.harris.com!del From: del@thrush.mlb.semi.harris.com (Don Lewis) Newsgroups: news.software.b Subject: Re: problems with responses from utstat!c-news Message-ID: <1990Oct23.034613.16182@mlb.semi.harris.com> Date: 23 Oct 90 03:46:13 GMT References: <1990Oct20.234846.3679@zoo.toronto.edu> <1990Oct21.090928.10961@utstat.uucp> Sender: news@mlb.semi.harris.com Organization: Harris Semiconductor, Melbourne FL Lines: 24 Nntp-Posting-Host: thrush.mlb.semi.harris.com In article <1990Oct21.090928.10961@utstat.uucp> geoff@utstat.uucp (Geoff Collyer) writes: >Henry writes: >> mailer problems on utstat have prevented me from seeing most of the mail. > >To give blame where blame is due, the root problem was that > > rsh foo "exit 1" > >(for example) returns an exit status of 0 (at least in both directions >between SunOS 3.5 and Irix 3.2). This is a bug, and I intend to take >this up with UCB (and find out what POSIX has to say about this nasty >behaviour). This would take a revision of the rsh protocol, since there is no provision for returning the remote exit status. All that comes back is the stdout and stderr output from the remote command. In the few cases that I have had get the exit status of the remote command, I have added an "echo $status" to the command and captured that in a local shell variable. -- Don "Truck" Lewis Harris Semiconductor Internet: del@mlb.semi.harris.com PO Box 883 MS 62A-028 Phone: (407) 729-5205 Melbourne, FL 32901