Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 9 Jan 2003 10:45:56 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Bash PATH via ssh Message-ID: <20030109104556.G23921@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <262990-22003138191816494 AT M2W090 DOT mail2web DOT com> <006a01c2b750$d70c7620$9700a8c0 AT michael> <20030108195420 DOT GA559081 AT WORLDNET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030108195420.GA559081@WORLDNET> User-Agent: Mutt/1.3.22.1i On Wed, Jan 08, 2003 at 02:54:21PM -0500, Pierre A. Humblet wrote: > On Wed, Jan 08, 2003 at 02:02:06PM -0600, Michael Hipp wrote: > > Thanks. I now have ensured that ~/.profile, ~./bash_profile, ~/.bash_login, > > /etc/profile all contain the lines: > > > > PATH="/usr/local/bin:/usr/bin:/bin:$PATH" > > export PATH > > > > But still when I do ssh 192.168.0.150 'echo $PATH' it returns only the > > windows path items. What am I missing here? > > > > Any help appreciated. > > The Cygwin sshd passes the PATH that exists in the system environment. > Edit it by right clicking My Computer, etc.. Uhm... in theory, there should be at least "/bin" somewhere in $PATH. The reason is that `cygrunsrv' appends ":/bin" to $PATH prior to calling the service application (sshd) to assure that cygwin1.dll is found in $PATH. Other than that you can use the ability of cygrunsrv to set environment variables also to set $PATH: cygrunsrv -I sshd ... -e "PATH=/cygdrive/c/WINDOWS:..." Just don't forget to add all Windows system paths, too. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/