Edit your crontab
Each user has their own crontab. Run this as the user you want the job to run as:nano is the easiest choice.
Cron schedule syntax
Each line has five time fields followed by the command to run:Example jobs
List, view, and remove
Common pitfalls
- Cron has a minimal PATH. Always use absolute paths (
/usr/bin/python3, not justpython3) or setPATH=at the top of your crontab. - Cron does not load your shell profile. Environment variables from
~/.bashrcare not available. Set them explicitly in the crontab or inside the script. - Output is emailed by default. On a VPS without mail configured, this fails silently. Redirect output to a log file so you can debug:
