Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: where does rsh get it's path from? Keywords: rsh, path Message-ID: <14512@smoke.brl.mil> Date: 17 Nov 90 15:22:59 GMT References: Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 11 In article ric@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 "\"$*\""