This is the mail archive of the
mailing list for the Cygwin project.
Re: Windows Task Scheduler
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Lst Recv <listrecv at gmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Wed, 4 Jan 2006 11:45:12 -0500 (EST)
- Subject: Re: Windows Task Scheduler
- References: <email@example.com>
- Reply-to: 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
|\ _,,,---,,_ firstname.lastname@example.org | email@example.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