Skip to content
Advertisement

Cron – bad minute errors in crontab file, can’t install

So I have a cron file sms.cron that I want to execute every 15 minutes that looks like that:

JavaScript

I do not precise the path to the command cause the command is at root and the sms.cron as well

I try to run it manualy with command :

JavaScript

And get the following error:

JavaScript

I get that I have a syntax error but looked at several similar issue on internet and do not see where this error might come from.

Does anyone have any idea on where this syntax error might come from ? Thanks!

UPDATE

Also tried this syntax:

JavaScript

which returned the following error message :

JavaScript

Output of od -c sms.cron:

JavaScript

UPDATE

The issue came from those char: “`

that were present in my cron file before and after my command

Advertisement

Answer

Your file sms.cron seems to contain lines with 3 backticks

JavaScript

before and after the line shown in the question. Remove these additional lines.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement