delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/13/11:12:07

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 13 May 2003 11:10:19 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Steve Fairbairn <steve DOT fairbairn AT perwill DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: sshd as service without /usr/bin being in the system path.
In-Reply-To: <D721826DEE793D49BC49582C121EDD3E8209@exchange.perwill.com>
Message-ID: <Pine.GSO.4.44.0305131107270.393-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 13 May 2003, Steve Fairbairn wrote:

> Hi All,
>
> I have a machine (Win2K SP3 on a domain) with both MKS Toolkit and now
> cygwin installed.  I require MKS Toolkit on the machine due to an issue with
> cygwin I've not been able to resolve (very specific to in house software and
> not the current topic).
>
> The problem I have is that I want to have cygwin sshd running but to
> continue using MKS Toolkit it's easiest to keep cygwin off the system PATH
> until I run the cygwin.bat script which updates PATH to include cygwin.
>
> Is there any way I can get cygwin sshd installed and working properly under
> these circumstances.  Every other time I have used sshd or read about it in
> the mailing lists, adding /usr/bin to the path has been one of the steps
> involved.
>
> I'm open to suggestions,
>
> Steve Fairbairn

Steve,

You can specify the path in cygrunsrv's -e option...  However, note the
marked lines from "cygrunsrv --help":

  -e, --env <VAR=VALUE>     Optional environment strings which are added
                            to the environment when service is started.
                            You can add up to 255 environment strings using
                            the `--env' option.
--->                        Note: /bin is always added to $PATH to allow all
--->                        started applications to find at least cygwin1.dll.

so it looks like you don't even need to do that (/bin and /usr/bin are the
same under Cygwin).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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