remote shells
Daniel A. Graifer
dag at fciva.FRANKCAP.COM
Sat Apr 6 03:52:13 AEST 1991
In article <3688 at ux.acs.umn.edu> edh at 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 at uunet.uu.net
More information about the Comp.unix.shell
mailing list