Path: utzoo!yunexus!maccs!dan From: dan@maccs.McMaster.CA (Dan Trottier) Newsgroups: ont.general Subject: rsh return status Message-ID: <1461@maccs.McMaster.CA> Date: 30 Sep 88 13:41:49 GMT Article-I.D.: maccs.1461 Reply-To: dan@maccs.UUCP (Dan Trottier) Distribution: ont Organization: McMaster U., Hamilton, Ont., Can. Lines: 28 While in the process of rewritting our backup scripts I ran into a problem with the return status of rsh(1). I'm trying to do something (bourne shell) along the lines of: if rsh $host rdump ${level}${opt} ${dhost}:${dev} ${fs} > ${log} then echo "$host: $fs completed" else echo "$host: $fs failed" fi The problem is that rsh(1) doesn't return the exit status of the command it runs. Now I could write a script on the remote host that would be executed instead of rdump(8) but I would like to avoid adding or supporting software on those remote hosts. The script runs on a Sun 4/280 OS 4.0 and does remote dumps on various other machines. Any ideas? Thanks -- Dan Trottier dan@maccs.McMaster.CA Dept of Computer Science ...!uunet!utai!utgpu!maccs!dan McMaster University (416) 525-9140 x3444