Cron

From TurnKey+MediaWiki
Jump to navigation Jump to search

Dzen2

 1 # 4h Reminders of Wessle                                                                                                                                            
 2 
 3 0 */4 * * * export DISPLAY=:0 && (echo "remember to sleep, eat and take your meds!"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null     2>&1
 4 
 5 # Daily 3h Reminders of Wessle
 6 0 */3 * * MON export DISPLAY=:0 && (echo "Müll runterbringen"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
 7 0 */3 * * TUE export DISPLAY=:0 && (echo "Einkaufen gehen"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
 8 0 */3 * * WED export DISPLAY=:0 && (echo "Wäsche Waschen"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
 9 0 */3 * * THU export DISPLAY=:0 && (echo "Abwaschen"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
10 0 */3 * * FRI export DISPLAY=:0 && (echo "Einkaufen gehen"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
11 0 */3 * * SAT export DISPLAY=:0 && (echo "Duschen"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
12 0 */3 * * SUN export DISPLAY=:0 && (echo "Meds richten"; sleep 10) | /usr/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1
13 
14 # Display Uptime and Load every Hour
15 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/local/bin/dzen2 -bg darkred -fg grey80 -fn fixed & >/dev/null 2>&1