Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fciva!dag From: dag@fciva.FRANKCAP.COM (Daniel A. Graifer) Newsgroups: comp.unix.shell Subject: Re: remote shells Message-ID: <595@fciva.FRANKCAP.COM> Date: 5 Apr 91 17:52:13 GMT References: <3688@ux.acs.umn.edu> Reply-To: dag@fciva.UUCP (Daniel A. Graifer) Organization: Coastal Capital Funding Corp., McLean, VA Lines: 19 In article <3688@ux.acs.umn.edu> edh@ux.acs.umn.edu (Merlinus Ambrosius) writes: >Is it possible to do this? > >#!/bin/sh >RHOST=apple-gunkies >rsh $RHOST 'echo here I am on $RHOST!' Other people correctly pointed that the single quotes are preventing the local shell from substituting the variable, and taht double quotes would prevent this. I prefer: rsh $RHOST 'echo here I am on `uname`!' Dan -- Daniel A. Graifer Coastal Capital Funding Corp. Sr. Vice President, Financial Systems 7900 Westpark Dr. Suite A-130 (703)821-3244 McLean, VA 22102 uunet!fciva!dag fciva.FRANKCAP.COM!dag@uunet.uu.net