Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-02-2004, 02:17 AM   #1
Registered: Oct 2003
Distribution: Debian
Posts: 55

Rep: Reputation: 15
cron tasks

I am having a problem running cron tasks, that problem is that they dont run! I get no mail from the cron deamon saying why they dont run, I get no messages in /var/log/messages to say they have run.

Here is a copy of the /etc/crontab

# Global variables

# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
*/15 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
0 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
0 8 * * * * root /usr/bin/freshclam -l /var/log/clam-update.log
*/5 * * * * cactiuser php /var/www/localhost/htdocs/cacti/cmd.php
0 4 * * * * root /usr/sbin/logrotate /etc/logrotate.conf
0 9 * * * * root /usr/bin/clamscan -r /home/

The first line test -x /usr/sbin/run-crons && /usr/sbin/run-crons does run, and is logged in the messages file, but nothing else is running, and I cant see why...any one have any ideas? Any help appreciated...

I am using vixie cron, and it is set to run at boot. (And is indeed runing)

Last edited by MaverickApollo; 02-02-2004 at 02:39 AM.
Old 02-02-2004, 01:06 PM   #2
LQ Guru
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Did you put any scripts in /etc/cron.daily, /etc/cron.weekly or whatnot? I'm pretty sure that's where things actually get run.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
Cron - doesn't seem to run scheduled tasks robintw Linux - General 11 11-25-2005 01:53 AM
All cron tasks fail Ateo Linux - Software 2 06-11-2005 01:34 PM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration