Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
my cron.daily always mails me that it has run (at least it tells me any errors that occured...) I added a new cron.weekly script, but it never runs. I can run it from the command line no problem, but not from cron.daily.
Thanks for all of the interest in this post... :-)
Yes, /mnt/rev is in my /etc/fstab so I don't have to specify the device
Yes the script is executable - in fact, I put a copy of the script in /etc/cron.daily and it ran along with the rest of the daily scripts.
It all boils down to run-parts not firing on the weekly cron. I compared my crontab with others on the net and it is identical - at least to these old eyes :P
Your crontab looks fine to me. How about putting some other directory in the weekly line like this:
22 4 * * 0 root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.adhoc
Or try adjusting the time to make it run daily or whatever. (Those numbers say: "run every sunday at 4:22 in the morning.") This way you can determine whether it's your cron or your filesystem that's causing the problem.
Maybe that 0 needs to be 7 or some extra script needs to be in every "run-parts" directory. What distro are you using?