where does rsh get it's path from?

Doug Gwyn gwyn at smoke.brl.mil
Sun Nov 18 02:22:59 AEST 1990


In article <ric.658771231 at ace> ric at ace.sri.com (Richard Steinberger) writes:
>Can anyone provide some suggestion as to how to have rsh be able to access
>commands that are 'normally' available (w/o full pathname, ...

Here's an extract from a script that we often use as a wrapper for rsh;
it shows the basic method for exporting environment variables to the
remote system.  "/usr/5bin/env" may need to be changed to simply "env"
for remote systems other than 4BSD with BRL System V emulation installed.

exec rsh `basename $0` /usr/5bin/env PATH="$PATH" TERM="$TERM" \
	sh -c "\"$*\""



More information about the Comp.unix.questions mailing list