Mailinglist Archive: opensuse (946 mails)

< Previous Next >
Re: [opensuse] logrotate
* Dave Howorth <dave@xxxxxxxxxxxxxx> [09-15-17 16:35]:
On Fri, 15 Sep 2017 20:56:03 +0200
"Carlos E. R." <robin.listas@xxxxxxxxxxxxxx> wrote:
On 2017-09-15 19:42, Per Jessen wrote:
What I find less easy is to tell when cronjob is going to fire

a) at 30 minutes past every 3rd hour.
b) at 2,17,32,47 minutes past every hour
c) 10 past midnight on the 1st of the month.
d) Sunday at 04:00.

LOL. Those are not actually cronjobs :-P

Eh?

First I copy the comment that should be in every crontab:
# min hr DoM month DoW [uid] command

#a
30 1,4,7,10,13,16,19,22 * * *

#b
2,17,32,47 * * * *

#c
10 0 1 * *

#d
00 4 * * Sun

What's not to like?

or:

# Note: Lines beginning with "#\" indicates a disabled task.
#
#########################################################################
#minute (0-59), #
#| hour (0-23), #
#| | day of the month (1-31), #
#| | | month of the year (1-12), #
#| | | | day of the week (0-6 with 0=Sunday). #
#| | | | | commands #
#0 2 * * 0,4 /etc/cron.d/logchecker #
# */6 six times per unit (every 6 units) #
#########################################################################
#



--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
Registered Linux User #207535 @ http://linuxcounter.net
Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >