LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2016, 08:07 AM   #1
anon3001
LQ Newbie
 
Registered: Jan 2016
Posts: 28

Rep: Reputation: Disabled
Weird Cron Entry


Hello,

I found a cron entry like this:

30 8 8-14 * */2 {something something date -eq 6} blahblahblah

My question is for the day of the week entry (last one). I thought it meant every Tuesday within the 8th and 14th of the month, but the guy I spoke to says that this executes the action biweekly every Saturday. I don't remember the whole syntax, but I do remember and entry saying -eq 6 (don't know if that denotes Saturday). He said the */2 means biweekly. Can anyone break this down for me? Thanks
 
Old 01-29-2016, 09:51 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
It will be run based on each specification.

If you type "man 5 crontab" you should see it contains something similar to this:
Quote:
Note: The day of a command’s execution can be specified by two fields — day of month, and day of week. If both fields are restricted (ie, aren’t *), 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 means your 8-14 will be done each day from the 8th through the 14th and your */2 will be done every 2 days so day 2 (Tues), day 4 (Thu) and day 6 (Sat).

Last edited by MensaWater; 01-29-2016 at 09:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] cron entry - what does this mean? ilesterg Linux - Newbie 4 10-20-2013 11:11 PM
[SOLVED] What is .gvfs? Weird directory entry haertig Linux - Software 10 09-18-2013 04:21 PM
Cron ORPHAN (no passwd entry) humbletech99 Linux - General 0 02-11-2009 06:32 AM
will this cron entry do what I want it to? microsoft/linux Debian 4 01-12-2006 06:29 PM
weird Apache log entry ScreeminChikin Linux - Security 8 01-10-2003 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration