delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/17/17:52:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [216.135.220.54]
From: "Karl M" <karlm30 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: A Second OpenSSH Path Question
Date: Mon, 17 Dec 2001 14:49:01 -0800
Mime-Version: 1.0
Message-ID: <F85fLrbPqPDBTBYFRQ30000559d@hotmail.com>
X-OriginalArrivalTime: 17 Dec 2001 22:49:01.0557 (UTC) FILETIME=[05612A50:01C1874D]

Hi All...

I have a vanilla install on a Win2k, SP2 machine.

If I type

ssh localhost which find

I get the one in /c/WINNT/System32

If I type

ssh localhost

and then type

which find in the new session, I get the one in /usr/bin

I know that I can change the setting of some environment variables to work 
around this, but...My question is this: Why is remote command executution 
different than remote interactive login?

By the way, I have the Cygwin created profile in /etc in which the first 
line is

PATH="/usr/local/bin:/usr/bin:/bin:$PATH"

So again, why do the two methods produce different results?

Thanks,

...Karl


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019