Dave's Brain

Browse - Computer Tips - /etc/cron.weekly run on the wrong day - I want it to run on Sunday.

Date: 2014apr19
OS: Linux
Distro: RedHat/Fedora/CentOS

Q.  /etc/cron.weekly run on the wrong day - I want it to run on Sunday.
How can I fix this?

A.  If you are using anacron you can change:

/var/spool/anacron/cron.weekly
This file simply holds the last date cron.weekly ran as YYYYMMDD. If you want it to run on Sundays change that date to the previous Sunday.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.