Cron

New Page

About Cron

# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)

Dzen 2 reminders via CRON

# m h  dom mon dow   command
0 */3 * * MON export DISPLAY=:0 && (echo "Müll runterbringen"; sleep 10) | /usr//bin/dzen2 -bg darkred -tw 1920 -fg grey80 -fn fixed & >/dev/null 2>&1
0 */3 * * TUE export DISPLAY=:0 && (echo "Einkaufen gehen"; sleep 10) | /usr/bin/dzen2 -bg darkred -fg grey80 -tw 1920 -fn fixed & >/dev/null 2>&1
0 */3 * * WED export DISPLAY=:0 && (echo "Wäsche Waschen"; sleep 10) | /usr/bin/dzen2 -bg darkred -fg grey80 -tw 1920 -fn fixed & >/dev/null 2>&1
0 */3 * * THU export DISPLAY=:0 && (echo "Abwaschen"; sleep 10) | /usr/bin/dzen2 -bg darkred -fg grey80 -tw 1920-fn fixed & >/dev/null 2>&1
0 */3 * * FRI export DISPLAY=:0 && (echo "Einkaufen gehen"; sleep 10) | /usr/bin/dzen2 -bg darkred -tw 1920 -fg grey80 -fn fixed & >/dev/null 2>&1
0 */3 * * SAT export DISPLAY=:0 && (echo "Duschen"; sleep 10) | /usr/bin/dzen2 -bg darkred -fg grey80 -tw 1920 -fn fixed & >/dev/null 2>&1
0 */3 * * SUN export DISPLAY=:0 && (echo "Meds richten"; sleep 10) | /usr/bin/dzen2 -bg darkred -tw 1920 -fg grey80 -fn fixed & >/dev/null 2>&1
05 */2 * * * export DISPLAY=:0 && (uptime | sed -E 's/^[^,]*up *//; s/, *digit:* users.*//; s/min/minutes/; s/(digit:+):0?(digit:+)/\1 hours, \2 minu    tes/'; sleep 10) | /usr/bin/dzen2 -bg darkred -tw 1920 -fg grey80 -fn fixed & >/dev/null 2>&1