|
|
Re: crontab 4th Tuesday of month |
On 28/07/12 12:53, Michael Schwendt wrote:
On Sat, 28 Jul 2012 12:03:09 +0100, Frank Murphy wrote:15 18 22-28 * 2 /command I thought the last tuesday would be covered by above. But it has run everyday since 22nd. Have googled a bit: http://hintsforums.macworld.com/showthread.php?t=25110 plus other crontab pages. http://hintsforums.macworld.com/member.php?s=2584787478dc5ab0791da9ba8d650aa5&u=28924 15 18 22-28 * * test 'date +\%a' != Tue || /command Am uncertain if above would work ootb. man crontab (22 September 2010) doesn't shed light on this.From the manual: Note: The day of a command's execution can be specified in the follow‐ ing two fields — 'day of month', and 'day of week'. If both fields are restricted (i.e., do not contain the "*" character), the command will be run when either field matches the current time. For example, "30 4 1,15 * 5" would cause a command to be run at 4:30 am on the 1st and 15th of each month, plus every Friday.
that was the crontab I used.
That matches your example.
I mean man crontab, didn't give example for 4th m\t\w\.. of month -- Regards, Frank "Jack of all, fubars" -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
[Older Fedora Users] [Fedora Announce] [Fedora Package Announce] [EPEL Announce] [Fedora News] [Fedora Cloud] [Fedora Advisory Board] [Fedora Education] [Fedora Security] [Fedora Scitech] [Fedora Robotics] [Fedora Maintainers] [Fedora Infrastructure] [Fedora Websites] [Anaconda Devel] [Fedora Devel Java] [Fedora Legacy] [Fedora Desktop] [Fedora Fonts] [ATA RAID] [Fedora Marketing] [Fedora Management Tools] [Fedora Mentors] [SSH] [Find Someone Special] [Fedora Package Review] [Fedora R Devel] [Fedora PHP Devel] [Kickstart] [Fedora Music] [Fedora Packaging] [Centos] [Fedora SELinux] [Fedora Legal] [Fedora Kernel] [Fedora QA] [Fedora Triage] [Fedora OCaml] [Coolkey] [Virtualization Tools] [ET Management Tools] [Yum Users] [Tux] [Yosemite News] [Yosemite Photos] [Linux Apps] [Maemo Users] [Gnome Users] [KDE Users] [Fedora Tools] [Fedora Art] [Fedora Docs] [Maemo Users] [Asterisk PBX] [Fedora Sparc] [Fedora Universal Network Connector] [Libvirt Users] [Fedora ARM]
![]() |
![]() |