delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/22/12:09:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 22 Jul 2004 09:07:14 -0700
From: Jaeho Shin <netj AT ropas DOT snu DOT ac DOT kr>
To: cygwin AT cygwin DOT com
Subject: Re: setting windows environment variables
Message-ID: <20040722160714.GF5800@sab.mazic.org>
References: <cdjumr$j90$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <cdjumr$j90$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i
Organization: ROPAS, SNU
X-IsSubscribed: yes
Note-from-DJ: This may be spam

--cQXOx3fnlpmgJsTP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, 2004-07-20 15:18:34 -0500, Jason Joines wrote:
> 	I have a Cygwin BASH script which takes user input, uses ldapsearch,=20
> etc., to set a bunch of environment variables.  I can then use these=20
> from bash with no problem.  I would also like to make these environment=
=20
> variables available to the windows command interpreter.
> 	Is there anyway to do this?

Try setx:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/setx-o.=
asp

You can change Windows environment variables from the command line, so
that you can call setx and change them from bash scripts.  It works
excellent for me to share a single ssh-agent Windows-wide. :)

You can use it only on NT/2000/XP, perhaps.
I'm not sure what's available on Windows 9X/ME.


> 	Also, is there a BASH equivalent of the windows cmd start command=20
> 	that lets you start many processes without having to wait on each to fin=
ish?

``cygstart'' should be what you are looking for.

--=20
=EC=8B=A0=EC=9E=AC=ED=98=B8 | Jaeho Shin <netj AT ropas DOT snu DOT ac DOT kr> | http://ne=
tj.org/
Research On Program Analysis System, Seoul National University

--cQXOx3fnlpmgJsTP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)

iD8DBQFA/+YyeGASkZ411HcRAsA9AJ9eogZu1x4d/rowhEc8dNv4XIDDkACgnIZI
27037uehRNXohtqEs38pkNM=
=LJa0
-----END PGP SIGNATURE-----

--cQXOx3fnlpmgJsTP--

- Raw text -


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