cron not running jobs, no errors

View: New views
3 Messages — Rating Filter:   Alert me  

cron not running jobs, no errors

by Alexfed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I installed cygwin on a windows 2003 Server. I installed cron and started the cron service with no errors. I ssued the following commands to install and run cron.
cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron

ps -ef | grep cron shows me that cron daemon is running.
  SYSTEM    1376    3568   ?  16:03:03 /usr/sbin/cron
/var/log/cron.log is empty

crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.7PA6kDrlJe installed on Fri Sep 28 18:02:18 2007)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
04 * * * * sh /home/Administrator/dba/hot_backup_smps.sh > /home/Administrator
hot_backup.log

Any help would be appreciated.

Re: cron not running jobs, no errors

by Brian Dessent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexfed wrote:

> cron service with no errors. I ssued the following commands to install and
> run cron.
> cygrunsrv -I cron -p /usr/sbin/cron -a -D
> cygrunsrv -S cron

Why?  That is not how you install the cron service.  There is much more
to be done, in fact there is a cron-config script provided (that is
nearly 900 lines of shell code) to do all the various tasks.
Specifically, on windows 2003 you must create a special service account
and give it extra privileges as the SYSTEM account cannot change uids.

So erase this broken service and run cron-config instead.  If that still
fails then run cron_diagnose.sh and attach its results.

Brian

--
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/


Re: cron not running jobs, no errors

by René Berber-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexfed wrote:

> I installed cygwin on a windows 2003 Server. I installed cron and started the
> cron service with no errors. I ssued the following commands to install and
> run cron.
> cygrunsrv -I cron -p /usr/sbin/cron -a -D

Wrong parameters, read /usr/share/doc/Cygwin/cron-4.1-5.README.

[snip]
--
René Berber


--
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/