delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/10/19:22:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Tue, 10 Feb 2009 18:22:21 -0600 (CST)
From: Tim McDaniel <tmcd AT panix DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: RFE?: CygWinDir in ENV? (was Re: How does one find where Cygwin was installed from Windows?)
In-Reply-To: <49920C32.7050507@cygwin.com>
Message-ID: <Pine.NEB.4.64.0902101819330.14422@panix2.panix.com>
References: <4990B031 DOT 4050807 AT tlinx DOT org> <4990B128 DOT 7030004 AT cygwin DOT com> <4990CB8D DOT 3050704 AT tlinx DOT org> <4990D05A DOT 4050202 AT cygwin DOT com> <4990DA52 DOT 9050900 AT tlinx DOT org> <4990E0BF DOT 1010502 AT cygwin DOT com> <4990EC89 DOT 8070901 AT tlinx DOT org> <4991004F DOT 1080006 AT cygwin DOT com> <4991E1CC DOT 9060804 AT tlinx DOT org> <Pine DOT NEB DOT 4 DOT 64 DOT 0902101450530 DOT 21431 AT panix1 DOT panix DOT com> <4991EB3C DOT 3090800 AT cygwin DOT com> <Pine DOT NEB DOT 4 DOT 64 DOT 0902101617520 DOT 3221 AT panix2 DOT panix DOT com> <49920C32 DOT 7050507 AT cygwin DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Tue, 10 Feb 2009, Larry Hall wrote:
> Tim McDaniel wrote:
>> I have several "trampoline" scripts, a bat file doing nothing but
>> invoking a corresponding bash shell script or Perl program.  I have
>> to hard-code a location for the bash / perl interpreter, but those
>> locations change from user to user (some people install under c:\,
>> some under the standard location).  I would like to have the
>> scripts work for any system.
...
>> (When mentioning it, by the way, you might also mention REG.exe, a
>> program to do registry access, and the options for FOR that allow
>> running a program and getting the results in a variable in CMD.exe.
>> I hadn't heard of REG until I went searching just now.)
>
> Sounds similar to Cygwin's 'regtool'.  Definitely would be helpful
> if you're trying to batch script something like this.

Well, not in *this* special case, because "like this" is trying to
find the Cygwin installation in the first place; if it knew where
regtool was, it would already know where Cygwin was installed ...

But thanks for the pointer to regtool -- I'll make a note of it for
other uses.

-- 
Tim McDaniel, tmcd AT panix DOT com

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