# usage: time command
# Commands are executed by cron(8) when the minute, hour, and month of
# year fields match the current time, and when one of the two
# [day/dom/...] fields match the current time. If both
# [day/dom/...] fields match it is done TWICE.
# field allowed values
# ----- --------------
# minute 0-59
# hour 0-23
# day of month 1-31
# month 1-12 (or names, see below)
# day of week 0-7 (0 or 7 is Sun, or use names)
# shortcuts:
# @reboot, @yearly, @monthly, @weekly, @daily, @midnight, @hourly
# see crontab(5)
# Important: don't add extra *'s or that is command:
# but add enough stars for day and month.
# If you don't want the output of a cron job mailed to you, you have to direct
# any output to /dev/null. We'll do this here since these jobs should run
# properly on a newly installed system, but if they don't the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
#
# Run the 'atrun' program every 5 minutes
# This runs anything that's due to run from 'at'. See man 'at' or 'atrun'.
# Note that this is commented out since it's not needed if you run atd. But,
# it's left as an example, since atd isn't strictly required. You can still
# run it this way instead.
#0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/sbin/atrun 1> /dev/null 2>
/dev/null
# example: at top of hour, every two hours from 11p.m. to 7a.m.,
# and at 8a.m.; only on mon-wed
# 0 23-7/2,8 * * mon-wed (any command bash takes)
PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11/bi
n:/home/scripts:/home/scripts/admin:/home/scripts/system"
# MINUTELY MINUTELY MINUTELY MINUTELY MINUTELY MINUTELY MINUTELY MINUTELY
5,20,35,50 * * * * [ -x /usr/sbin/flushpop.sh ] && /usr/sbin/flushpop.sh 1>
/dev/null 2> /dev/null
# HOURLY HOURLY HOURLY HOURLY HOURLY HOURLY HOURLY HOURLY HOURLY HOURLY HOURLY
# sarge ping is buggy unlike slackare
5 */1 * * * foo 2>&1 >> /dev/null 2>&1 &
# DAILY DAILY DAILY DAILY DAILY DAILY DAILY DAILY DAILY DAILY DAILY
# race cond. can prevent this from happening right at boot
# like to reset often but it's intrusive
1 1 */1 * * foo 2>&1 >> /dev/null 2>&1 &
# WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY WEEKLY
0 1 */7 * * echo "Subject: Have you updated the backup directories this week
?" | mail
who@me.com &
# MONTHLY MONTHLY MONTHLY MONTHLY MONTHLY MONTHLY MONTHLY MONTHLY MONTHLY
10 5 */28 * * nice -n 17 sysinfo &
# ~~ make host timestamps in /tmp (time when cron visited time) ~~
0 0 * * * daily &
0 0 * * 0 weekly &
0 0 1 * * monthly &
0 0 * */12 * yearly &
# enjoy