home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3540 < prev    next >
Encoding:
Text File  |  1992-08-20  |  916 b   |  21 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!decwrl!zazen!zazen!thomson
  3. From: thomson@zarda.macc.wisc.edu (Don Thomson)
  4. Subject: Exit status of command executed by rsh
  5. Message-ID: <THOMSON.92Aug20073755@zarda.macc.wisc.edu>
  6. Sender: news@macc.wisc.edu (USENET News System)
  7. Organization: University of Wisconsin Academic Computing Center
  8. Date: 20 Aug 92 07:37:55
  9. Lines: 10
  10.  
  11. I'm executing commands on a remote machine using rsh in a Bourne shell script
  12. and then want to test the exit status of the remote command.  Of course, after
  13. the rsh, the exit status is that of the rsh executed on my machine rather than
  14. the command executed on the remote machine.  Is there a particularly
  15. slick/elegant way to pass back and test the exit status from the remote
  16. machine?
  17. --
  18.  
  19. ----- Don Thomson ----- MACC, 1210 W. Dayton, Madison, WI  53706 -------------
  20.     (608) 262-0138      thomson@macc.wisc.edu / thomson@wiscmacc.bitnet
  21.