In this tutorial, we learn about cron jobs and how to schedule commands and Python scripts in the terminal via crontab (for Linux and Mac). This allows us to run commands on a repetitive schedule. We specifically look into running Python scripts as cron jobs. There are a couple of pitfalls where we have to be careful. We also learn how to schedule jobs with a virtual environment.
✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer *
⭐ Join Our Discord : https://discord.gg/FHMg9tKFSN
Get monthly Python and ML Tips:
SUPPORT ME ON PATREON:
If you enjoyed this video, please subscribe to the channel!
00:00 – Introduction
01:20 – Cron syntax
06:00 – Crontab
07:15 – Python scripts
10:40 – Virtual Environment
You can find me here:
Photo by Kari Shea: https://unsplash.com/photos/1SAnrIxw5OY
* This is a sponsored or an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support!