Mail Archives: cygwin/2004/07/22/12:09:19
--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 -