where does rsh get it's path from?

Richard Steinberger ric at ace.sri.com
Sat Nov 17 03:00:31 AEST 1990


I have noticed that when I use the rsh command to perform tasks on other
hosts, the path variable is: /bin /usr/ucb /usr/bin and .  .  (I.E., rsh
host2 'echo $path' provides that result).  Since I often want to execute a
command in some other directory (e.g., /usr/local/bin), I've usually
specified the full pathname of the command.  But I was wondering if there is
an easier way to do this.  And I am also curious as to where the initial
path that rsh has comes from.

Here is a common problem:  Vol 3 O'Reilly X11 reference set suggests the
following command for displaying a remote system's load on one's local
workstation or Xterminal:   rsh host 'xload -display host1:0' &.  (p 29)
Since xload is in /usr/bin/X11, the command is not executed because it
is not found in the path that rsh knows about.

Can anyone provide some suggestion as to how to have rsh be able to access
commands that are 'normally' available (w/o full pathname, because users
usually have something like set path = ($path otherdir1 otherdir2 . . .) in
.login) in interactive sessions?  Thanks in advance to all who reply.

regards,

	ric steinberger
	ric at ace.sri.com



More information about the Comp.unix.questions mailing list