public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] crontab - "and' condition
@ 2014-09-18 16:44 Joseph
  2014-09-18 16:57 ` Kerin Millar
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Joseph @ 2014-09-18 16:44 UTC (permalink / raw
  To: gentoo-user

I want to run a cron job only once a month.  The problem is the computer is only on on weekdays Mon-Fri. 1-5

cron tab as this below is an "or" condition as it has entries in Days of the Months and Day of the  Week

5 18 1 * 2  rsync -av ...

so it will run on days 1 or Tuesday of each months.

Is it possible to create "and" condition, eg. run it on Tuesday between days 1 to 7; depend on which day Tuesday falls on? 

-- 
Joseph


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-09-21  7:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18 16:44 [gentoo-user] crontab - "and' condition Joseph
2014-09-18 16:57 ` Kerin Millar
2014-09-18 17:14 ` Alan McKinnon
2014-09-19  4:21   ` Joseph
2014-09-19  7:09     ` Alan McKinnon
2014-09-20 16:09       ` Michael Orlitzky
2014-09-21  7:57         ` Peter Humphrey
2014-09-19  7:47 ` Stephan Müller
2014-09-20 17:40   ` Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox