Reformat the crontab examples.

This commit is contained in:
Jarno Rantanen 2018-08-05 20:05:51 +03:00
parent ca89f2351b
commit 1af2da554b

View File

@ -1,9 +1,24 @@
# m h dom mon dow command
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday;
# │ │ │ │ │ 7 is also Sunday on some systems)
# │ │ │ │ │
# │ │ │ │ │
# * * * * * command to execute
# 0 7 * * 1-5 ~/display-on.sh # turn display on weekdays at 7 AM
# 0 19 * * 1-5 ~/display-off.sh # turn display off weekdays at 7 PM
# Reboot the Pi every night at 3 AM to ensure smooth operation
0 3 * * * sudo reboot
0 3 * * * sudo reboot # reboot the pi every night at 3 AM
# Example: Turn display on weekdays at 7 AM
# 0 7 * * 1-5 ~/display-on.sh
# * * * * * DISPLAY=:0.0 xdotool key ctrl+R
* * * * * DISPLAY=:0.0 xdotool key ctrl+Tab
# Example: Turn display off weekdays at 7 PM
# 0 19 * * 1-5 ~/display-off.sh
# Example: Reload webpage every hour
# 0 * * * * DISPLAY=:0.0 xdotool key ctrl+R
# Example: Cycle between open tabs every 5 minutes
# */5 * * * * DISPLAY=:0.0 xdotool key ctrl+Tab