delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/07/14:08:01

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: Wed, 7 May 2003 14:04:47 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Portable Cygwin on a CD
In-Reply-To: <Pine.LNX.4.44.0305071708040.10125-100000@localhost.localdomain>
Message-ID: <Pine.GSO.4.44.0305071359530.3212-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 7 May 2003, Ronald Landheer-Cieslak wrote:

> [snip]
> > See if Cygwin's installed (has a mount table), and if so, run /bin/ps?
>
> That would definitely be a cleaner way to do it :)
> Perhaps also look for cygwin1.dll in the PATH, just to make sure (try a
> LoadLibrary of cygwin, for example) - there may be cygwin apps around
> without there being an actual installation..

Yes, that's actually a good idea.  IIRC, though, LoadLibrary looks in the
current directory first, so be careful in where you call it from, lest it
picks up the DLL on the CD.

> ..but in that case ps would still find them, so just running ps should be
> fine.
>
> If Cygwin is already running, and ps is on the CD next to cygwin1.dll,
> will the one in memory be used, or will Windows try to load the one next
> to ps? (I don't know all that much about Windows' runtime loader sematics)

Note that I said "run /bin/ps", not just "run ps".  If Cygwin is
installed on the target machine, you have to run the ps from *that*
cygwin's /bin, just in case *that* cygwin1.dll is already loaded.  If you
try to run the ps from the CD, you'll get an error trying to load the DLL
from the CD.
	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