home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!decwrl!zazen!zazen!thomson
- From: thomson@zarda.macc.wisc.edu (Don Thomson)
- Subject: Exit status of command executed by rsh
- Message-ID: <THOMSON.92Aug20073755@zarda.macc.wisc.edu>
- Sender: news@macc.wisc.edu (USENET News System)
- Organization: University of Wisconsin Academic Computing Center
- Date: 20 Aug 92 07:37:55
- Lines: 10
-
- I'm executing commands on a remote machine using rsh in a Bourne shell script
- and then want to test the exit status of the remote command. Of course, after
- the rsh, the exit status is that of the rsh executed on my machine rather than
- the command executed on the remote machine. Is there a particularly
- slick/elegant way to pass back and test the exit status from the remote
- machine?
- --
-
- ----- Don Thomson ----- MACC, 1210 W. Dayton, Madison, WI 53706 -------------
- (608) 262-0138 thomson@macc.wisc.edu / thomson@wiscmacc.bitnet
-