Re: cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 21, 2016 at 10:02:19AM +0200, Patrick Dupre wrote:
> and in my /etc/anacrontab
> 1	5	cron.daily		nice run-parts /etc/cron.daily
> 7	25	cron.weekly		nice run-parts /etc/cron.weekly
> 
> but 
> 
> anacron is executed on the Monday !
>   N  44 Monday     root                 (793) Backup                                   
>   N  45 Monday     root                 (818) Backup                                   
>  N  46 Monday     Anacron               (2K) Anacron job 'cron.weekly' on teucidide 
> 
> 
> While in fc22, with the same configuration, crond and anacrond were executed on time
> (Saturday)

If you care about the *particular* time that a job runs, rather than
just wanting to make sure it gets run once in a certain period,
cron.daily and cron.weekly are not for you. Instead, drop a file in
/etc/cron.d with the traditional

    0 4 * * sat root yourcommand.sh

syntax (in that example, to run yourcommand.sh as root at 4am on
Saturdays).



-- 
Matthew Miller
<mattdm@xxxxxxxxxxxxxxxxx>
Fedora Project Leader
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux