delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/04/11:45:30

X-Spam-Check-By: sourceware.org
Date: Wed, 4 Jan 2006 11:45:12 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Lst Recv <listrecv AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Windows Task Scheduler
In-Reply-To: <11f3a4750601040821y6d50e958m5acbfa30932560fd@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0601041140000.14727@slinky.cs.nyu.edu>
References: <11f3a4750601040821y6d50e958m5acbfa30932560fd AT mail DOT gmail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

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 <http://cygwin.com/problems.html>,
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/

- Raw text -


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