From owner-freebsd-questions Tue May 27 02:22:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA04874 for questions-outgoing; Tue, 27 May 1997 02:22:23 -0700 (PDT) Received: from dot.ishiboo.com (user9147@dot.ishiboo.com [208.128.22.10]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA04869 for ; Tue, 27 May 1997 02:22:21 -0700 (PDT) From: nirva@ishiboo.com Received: (qmail-queue invoked by uid 520); 27 May 1997 09:22:16 -0000 Message-ID: <19970527092216.9143.qmail@dot.ishiboo.com> Subject: Re: rsh/ksh problems To: msmith@revolution.3-cities.com (Mark D Smith) Date: Tue, 27 May 1997 03:22:15 -0600 (MDT) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <199705270745.AAA16276@revolution.3-cities.com> from "Mark D Smith" at May 27, 97 00:45:04 am X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > From: Mark D Smith > Subject: rsh/ksh problems > Date: Tue, 27 May 1997 00:45:04 -0700 (PDT) > > Greetings, > > I'm having a nasty problem that I can't quite track down. > > I have the .rhosts file properly created. > > when i say "rsh machine2 ls" I get the output from ls. OK, fine. Now > I say "rsh machine2 rmt" and it says ksh: rmt: not found. Hmm, > now I say "rsh machine2 set" and I get the path as being > PATH='/usr/bin:/bin'. For some reason, the remote ksh is not picking > up the path in /etc/profile or $HOME/.profile. Am I doing something > wrong here? How do I get the remote ksh to pick up the path that I > need? Your .profile doesn't get read when you run a shell through rsh because the shell isn't started as a login shell. You need to set the PATH in the non-login rc file... I'm not sure what it is for ksk. > thanks > > Mark > -- Neal Fachan kneel@ishiboo.com