Need to run Raspberry Pi commands and scripts on a cron schedule? In this video, I go over examples of crontab schedule format for running cron jobs on the Raspberry Pi. Learn how to check crontab logs from capturing Raspberry Pi device temperature, run shell scripts on the Raspberry Pi with arguments, run Python scripts weekly or daily, and run Java applications/programs for sending weekly reports by updating a Raspberry Pi's crontab file.
Examples and ideas for cron jobs:
Capturing Raspberry Pi's device temperature every hour
Check the weather every day and send notifications (if it will rain)
Dumping MySQL database weekly
Send daily email reports of Raspberry Pi logs or statuses of web server/webservices
=== Commands Used ===
sudo crontab -e (Edit crontab as superuser)
$(vcgencmd measure_temp)" (Capture device temperature)
=== Crontab Format (5 cron components) ===
"1:minute 2:hour 3:day-of-month 4:month 5:day-of-week COMMAND-OR-SCRIPT"
#raspberrypi #raspberrypi5 #raspberrypiprojects #raspberrypi4
Смотрите видео Raspberry Pi: Schedule Commands & Scripts | Crontab онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Arcade Spinner 30 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 83 раз и оно понравилось 5 людям.