Re: [arch-general] System Cron jobs not running
Hi Alex,
I think in a default configuration crond handles hourly and runs anacron to handle the daily, weekly, etc. I was having trouble running a daily until I realized my cron.daily shell script environment path did not include /usr/local/bin. Placing the full path to my perl script fixed the issue.
----- Original Message -----
From: "Alex Ferrando"
Karol Blazewicz
writes: On Fri, Oct 21, 2011 at 3:54 AM, R7h0re4
wrote: I made a custom script that I want to put into the weekly system cron job and according to my logs the script is not running weekly like it should.
-rwxr--r-- 1 root root 87 Aug 4 13:39 cool_script.sh
According to my information the permission are correct as only root should be able to run system cron jobs.
This is the only thing I have seen in my logs.
Oct 20 03:01:02 localhost anacron[14161]: Anacron started on 2011-10-20 Oct 20 03:01:02 localhost anacron[14161]: Job `cron.weekly' locked by another an acron - skipping Oct 20 03:01:02 localhost anacron[14161]: Will run job `cron.daily' in 12 min. Oct 20 03:01:02 localhost anacron[14161]: Jobs will be executed sequentially Oct 20 03:02:01 localhost anacron[14151]: Job `cron.weekly' started Oct 20 03:02:02 localhost anacron[14151]: Job `cron.weekly' terminated Oct 20 03:02:02 localhost anacron[14151]: Normal exit (1 job run) Oct 20 03:13:02 localhost anacron[14161]: Job `cron.daily' started Oct 20 03:13:55 localhost anacron[14161]: Job `cron.daily' terminated Oct 20 03:13:55 localhost anacron[14161]: Normal exit (1 job run)
I do not have Anacron installed, and my script does not run weekly like it is supposed too, I would like fix this problem.
Any suggestions are welcome!
R7h0re4
Are you using cronie, dcron or some other cron? cronie provides anacron.
I do have Cronie installed but I am still wondering why the script won't run if put in the weekly cron folder. My understanding is the documentation is a little week concerning this topic on the Wiki. Do I need to fill a bug report, or is something out of place.
R7h0re4
CONFIDENTIALITY NOTICE: This e-mail and any attachments are for the sole use of the intended recipient(s) and contain information that may be confidential and/or legally privileged. If you have received this e-mail in error, please notify the sender by reply e-mail and delete the message. Any disclosure, copying, distribution or use of this communication by someone other than the intended recipient is prohibited. Please consider the environment before printing this e-mail.
participants (3)
-
Jason Towell
-
Paul Gideon Dann
-
R7h0re4