From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24060 invoked by alias); 3 May 2002 05:55:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24011 invoked from network); 3 May 2002 05:55:01 -0000 Received: from unknown (HELO barry.mail.mindspring.net) (207.69.200.25) by sources.redhat.com with SMTP; 3 May 2002 05:55:01 -0000 Received: from user-vcaum1c.dsl.mindspring.com ([216.175.88.44] helo=mchase-compaq.homeportal.2wire.net) by barry.mail.mindspring.net with esmtp (Exim 3.33 #1) id 173W20-0003o0-00; Fri, 03 May 2002 01:55:00 -0400 Date: Thu, 02 May 2002 22:55:00 -0000 From: Michael A Chase Subject: Re: How to set system PATH for cygwin on nt? To: Dave Bodenstab , cygwin@cygwin.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE References: <3CD21183.D7E94B80@mindspring.com> In-Reply-To: <3CD21183.D7E94B80@mindspring.com> Reply-To: Michael A Chase Message-Id: X-SW-Source: 2002-05/txt/msg00145.txt.bz2 On Thu, 02 May 2002 23:26:43 -0500 Dave Bodenstab wrote: > My background is Unix and I'm *very* new with NT... so this has, > I'm sure, a very simple solution. > > Trying to get inetd to work, the doc's say to set the system PATH. > How? What file contains the settings? Somehow, NT pickeds up > the PATH I had in my autoexec.bat when I open a DOS window... > but the PATH in the cygwin environment is different -- and, of > course, is not set at the time initd is started. WinNT and its decendents keep environment variables in the registry. One set for everybody and separate sets of additional variables for each user. I haven't used NT in a couple months, so it's a little hazy, but I think one way to get to the environment dialog window is to right-click on 'My Computer' and select the 'Environment' tab. If that doesn't get there, search for environment or PATH in Windows's help. Cygwin applications use the same PATH as Windows, but it is converted to proper UNIX form as they start up. I normally keep c:\Cygwin\bin near the end of my Windows path, but you'll have to decide what works best for you. When you start a bash login shell, the default /etc/profile puts /bin at the front of the path. > Since I couldn't find how to set the system PATH properly, I just > copied the cygwin.dll to \winnt\, so now inetd starts. That is a very bad idea. The next time Cygwin is update, you will have two different versions of cygwin1.dll in separate directories. The right answer is to set the system PATH. > When I attempt a telnet from another system, I get the login prompt. > I enter Administrator and the password and I get a message that > I'm logged in, but on the target system a message pops up saying that > the application failed to start. I'm hoping that this is related > to this PATH setting also. Someone else will have to address this. I don't use any remote access tools. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- 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/