Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cygwin: Starting cron as a service (access denied)

Tags:

cron

cygwin

I am trying to set-up cron on my CYGWIN installation on a Win7 box. I am using the procedure mentiond here:

How do you run a crontab in Cygwin on Windows?

This is how I try to start the cron-service:

> cygrunsrv -I cron -p /usr/sbin/cron -a -D

The response that I get is:

cygrunsrv: Error installing a service: OpenSCMManager: 
Win 32 error 5: Access denied

Any tips on how to proceed?

like image 476
jansb000 Avatar asked Aug 12 '13 10:08

jansb000


1 Answers

Make sure you are starting Cygwin with Administrator privileges. Right click on your Cygwin shortcut, then 'Run as Administrator'.

like image 126
Jeremy Avatar answered Nov 07 '22 04:11

Jeremy