delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/12/11:23:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: Adam Dinwoodie <Adam DOT Dinwoodie AT metaswitch DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: start cygwin script from windows
Date: Mon, 12 Mar 2012 15:21:11 +0000
Deferred-Delivery: Mon, 12 Mar 2012 15:21:00 +0000
Message-ID: <CE9C056E12502146A72FD81290379E9A2C52975B@ENFIRHMBX1.datcon.co.uk>
References: <jjghu4$edt$1 AT dough DOT gmane DOT org>
In-Reply-To: <jjghu4$edt$1@dough.gmane.org>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2CFNgjU008967

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


- Raw text -


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