delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <27095732.post@talk.nabble.com> |
Date: | Sat, 9 Jan 2010 21:16:50 -0800 (PST) |
From: | aviate <richards DOT mikes AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: question with cygwin.bat and Windows Scheduler |
In-Reply-To: | <4B495A98.7040003@monai.ca> |
MIME-Version: | 1.0 |
References: | <27094829 DOT post AT talk DOT nabble DOT com> <4B494098 DOT 4040706 AT monai DOT ca> <27095212 DOT post AT talk DOT nabble DOT com> <4B495A98 DOT 7040003 AT monai DOT ca> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Steven...this is *exactly* what I was looking for. Thanks so much for your help here. -Mike Steven Monai-5 wrote: > > On 2010/01/09 7:02 PM, aviate wrote: >> I was avoiding cron...but it might be most useful here. Is there any >> way to >> hide the window popping up by Windows Scheduler?? > > Yes there is. > > Install the Cygwin 'run' package (if not installed already). Use the > Windows Task Scheduler interface to schedule the following command line > for execution: > > C:\cygwin\bin\run.exe bash -wait --login -c "/myfolder/myscript.sh" > > That's it. Your bash script should run in a "hidden" console window at > the scheduled times. > > What's really nice is that with 'run', you don't need to have a separate > .bat file. Oh, and I guess you won't need cron. > > -SM > -- > > -- > 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 > > > -- View this message in context: http://old.nabble.com/question-with-cygwin.bat-and-Windows-Scheduler-tp27094829p27095732.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |