remote shells

Merlinus Ambrosius edh at ux.acs.umn.edu
Wed Apr 3 07:29:52 AEST 1991


Is it possible to do this?

#!/bin/sh
RHOST=apple-gunkies
rsh $RHOST 'echo here I am on $RHOST!'

When I try this, it says "RHOST undefined".  I am sure this is because the
shell on the remote host doesn't have RHOST defined (of course).  Is it
possible to pass the definition of RHOST on through the rsh?

Thanks very much for any help,
			--eric



More information about the Comp.unix.shell mailing list