Cause of the error
You may encounter this error while creating a new crontab or updating an existing one that has a syntax error.
🔭 Want to get alerted when your Cron doesn't run correctly?
Go to Better Stack and start monitoring them in 5 minutes.
Solution
Crontabs have simple, but strict syntax rules. Every crontab file has to:
- Start whit a correct cron schedule (can be an environmental variable) or comment on every line
- Contain a username for each cron job
- Contain valid and executable shell expression
- End with a newline
Got an article suggestion?
Let us know
BY
NC
SA
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.