Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Re: setting windows environment variables Message-ID: <20040722160714.GF5800@sab.mazic.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cQXOx3fnlpmgJsTP" Content-Disposition: inline In-Reply-To: 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 | 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--