X-Spam-Check-By: sourceware.org Date: Wed, 4 Jan 2006 11:45:12 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Lst Recv cc: cygwin AT cygwin DOT com Subject: Re: Windows Task Scheduler In-Reply-To: <11f3a4750601040821y6d50e958m5acbfa30932560fd@mail.gmail.com> Message-ID: References: <11f3a4750601040821y6d50e958m5acbfa30932560fd AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, 4 Jan 2006, Lst Recv wrote: > I tried using the Windows Task Scheduler to schedule a bash -c > "hibernate now" command, yet it didn't seem to run. Is there a reason > that bash/hibernate wouldn't like Task Scheduler? If so, what is the > best way to handle this? (Just install and use crond?) Using cron is certainly an option. Don't forget that using the Task Scheduler will run your job as "SYSTEM" (a.k.a. "LocalSystem"), not the user that scheduled the job. However, there could be many possible reasons why your case didn't work, many of them having to do with the properties of your Cygwin installation. We can't know the details unless you read and follow the directions on the Cygwin problem reporting page at , especially the request to attach the output of "cygcheck -svr" (as an uncompressed text attachment). FWIW, hibernate is a symlink to /bin/shutdown (which you can invoke directly with as "shutdown -h" to hibernate, eliminating the need to use "bash -c"). HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/