Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!ogicse!husc6!unix!ace!ric From: ric@ace.sri.com (Richard Steinberger) Newsgroups: comp.unix.questions Subject: where does rsh get it's path from? Keywords: rsh, path Message-ID: Date: 16 Nov 90 16:00:31 GMT Sender: news@unix.SRI.COM Lines: 23 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@ace.sri.com