Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   cron mystery (http://www.linux-archive.org/centos/333504-cron-mystery.html)

Timothy Murphy 02-28-2010 06:00 PM

cron mystery
 
I've just noticed that cron.daily, etc,
do not seem to be running on my CentOS-5.4 system.
The scripts in /etc/cron.d/ all run fine,
but those in /etc/cron.hourly, etc, seem to be ignored.

I see that according to /var/log/cron
these commands are seen, eg

Feb 28 18:01:01 helen crond[6680]: (root) CMD (run-parts /etc/cron.hourly)

but none of the scripts in this directory
seem to be touched.
I've tried running them by hand, and this seems to work fine.

Is there some problem, or subtlety, about crond under CentOS?

--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Robert Nichols 02-28-2010 09:05 PM

cron mystery
 
On 02/28/2010 01:00 PM, Timothy Murphy wrote:
> I've just noticed that cron.daily, etc,
> do not seem to be running on my CentOS-5.4 system.
> The scripts in /etc/cron.d/ all run fine,
> but those in /etc/cron.hourly, etc, seem to be ignored.
>
> I see that according to /var/log/cron
> these commands are seen, eg
>
> Feb 28 18:01:01 helen crond[6680]: (root) CMD (run-parts /etc/cron.hourly)
>
> but none of the scripts in this directory
> seem to be touched.
> I've tried running them by hand, and this seems to work fine.
>
> Is there some problem, or subtlety, about crond under CentOS?

Missing execute permissions on the scripts, perhaps??

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

John Doe 03-01-2010 11:11 AM

cron mystery
 
From: Timothy Murphy <gayleard@eircom.net>
> The scripts in /etc/cron.d/ all run fine,
> but those in /etc/cron.hourly, etc, seem to be ignored.

Tried:
printf "#"'!'"/bin/bash
touch /tmp/cron.test
" > /etc/cron.hourly/cront.test; chmod 755 /etc/cron.hourly/cront.test

Next hour:
$ ll /tmp/cron.test
-rw-r--r-- 1 root root 0 Mar 1 13:01 /tmp/cron.test

Did you run your script has the cron user...?
Do you have the following in your /etc/crontab?
01 * * * * root run-parts /etc/cron.hourly

JD



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 07:12 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.