start cygwin script from windows

Adam Dinwoodie Adam.Dinwoodie@metaswitch.com
Mon Mar 12 15:23:00 GMT 2012


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



More information about the Cygwin mailing list