This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: start cygwin script from windows
- From: Adam Dinwoodie <Adam dot Dinwoodie at metaswitch dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 12 Mar 2012 15:21:11 +0000
- Subject: RE: start cygwin script from windows
- Deferred-delivery: Mon, 12 Mar 2012 15:21:00 +0000
- References: <jjghu4$edt$1@dough.gmane.org>
Christian Buhtz wrote:
> I have a script running on cygwin.
>
> I want to start it (with taksplaner) from windows but cygwin is not
> running.
>
> How can I tell window to start the script but need to run cygwin first?
Two options:
* Use Cygwin's cron: There's good, brief instructions on [Stack Overflow][0].
* Specify the program that runs the script to Task Scheduler. For a bash script, for example, the command you'd want to give Task Scheduler would be something along the lines of:
C:\cygwin\bin\bash.exe -c "/path/to/script.sh"
[0]: http://stackoverflow.com/a/707220
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple