Skip to content
Advertisement

Crontab python script does not run (with anaconda on linux server)

I have the following list of tasks to complete and they are working successfully.

JavaScript

The file structure is as follows:

JavaScript

But then a problem arises, I added several new files for execution and they do not work. Here is an example of the code for such a file

JavaScript

As you can see, it is completely similar, the python file itself starts and does its job perfectly, but something goes wrong with the crowns

Cron logs:

JavaScript

analyzator – a file that sends a message to a telegram, here are its settings for checking

JavaScript

What could be the problem, some files work fine and others don’t???

Advertisement

Answer

You’re suffering from DOS line-endings inside your shell script, the CR gets interpreted as part of the file name, which indeed does not exist.

One way of dealing with this would be to use a linux editor; another way would be to use

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