This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Invoking script non-interactively
- 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>
- Subject: RE: Invoking script non-interactively
- From: Edward Avis <EPA at datcon dot co dot uk>
- Date: Tue, 26 May 1998 11:14:58 +0100
>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@cygnus.com" with one line of text: "help".