Skip to content
Advertisement

Crontab Entry Causing Unknown Command

The entry

JavaScript

Is causing the following error:

JavaScript

My script has the shebang at the top:

JavaScript

I think the python3 path is correct:

JavaScript

As suggested, I looked for a CR but none found:

JavaScript

What should I try?

Thanks

Advertisement

Answer

Make sure the end-of-line does not contains Carriage return, but only new line.

JavaScript

If there’s carriage return, the characters is also considered as a part of the executable path.


To remove CR, you can use tools like dos2unix.

If you don’t want to use dos2unix, you can use python:

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