cygwin
This is an old revision of the document!
Table of Contents
Cygwin
How to run a crontab in Cygwin on Windows
Just to mention first that you could bypass cron altogether with this little trick:<br /> Create a scheduled task with the windows scheduler by calling the shell program
0@@
otherwise…
- Install cygrunsrv and cron packages from the admin bundle (with 'Install from internet“ option)
- From a Cygwin prompt, to install the cron daemon as a service type:
1@@
- Start the cron daemon from a Windows prompt with:
2@@
or from a Cygwin prompt with:
3@@
Now change the properties on the service to run as a user other than “Local System”
Configure cron
Run this from a Cygwin terminal
4@@
Show system log of possible problems from the cron daemon (service)
5@@
Diagnose problems
Check installed modules
6@@
Check current status
7@@
If you get
8@@
this means that the cron service is trying to run jobs as the “Local System” account. Right-click on the service and change the user it runs jobs as to be the one you want.
cygwin.1544273360.txt.gz · Last modified: 2018/12/08 12:49 by 0.0.0.0
