delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/26/15:31:39

From: EPA AT datcon DOT co DOT uk (Edward Avis)
Subject: RE: Invoking script non-interactively
26 May 1998 15:31:39 -0700 :
Message-ID: <c=GB%a=TMAILUK%p=DCNET%l=EXCHANGE2-980526101458Z-1767.cygnus.gnu-win32@smtp.datcon.co.uk>
To: "'michael AT weiser DOT saale-net DOT de'" <michael AT weiser DOT saale-net DOT de>,
"'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

>You could make a copy of your cygnus.bat and make bash execute your
>script by adding it to the call. This could look like this:
>
>@ECHO OFF
>SET MAKE_MODE=unix
>SET CYGWIN32=tty
>SET CYGROOT=e:\cpp\cygwin32.b19
>SET CYGFS=e:/cpp/cygwin32.b19
>SET CYGREL=B19
>SET GCC_EXEC_PREFIX=%CYGROOT%\usr\lib\gcc-lib\
>SET TCL_LIBRARY=%CYGROOT%\usr\share\tcl8.0\
>SET GDBTK_LIBRARY=%CYGFS%/usr/share/gdbtcl
>SET PATH=%CYGROOT%\bin;%CYGROOT%\usr\bin;%PATH%
>
>SET HOME=/home/%USERNAME%
>
>echo Cygnus Cygwin32 %CYGREL%
>bash /bin/myscript
>
>Then you could add this new batch to the at-daemon's job list and have
>it executed when you need it.

I think a better solution would be to add the above environment
variables permanently with Control Panel->System->Environment.  That's
what I have done on my NT box here, it means I can run Cygwin programs
whenever I want to (including from at).

--
Ed Avis <http://members.tripod.com/~mave>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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