Answer the question
In order to leave comments, you need to log in
How to configure cron correctly?
Unable to set up cron on the server.
In crontab -e I wrote */30 * * * * /root/chedak_bot/execute.sh
But every 30 minutes instead of executing the script, I see this entry in the var/mail/root file
/bin/sh: 1: /root/cherdak_bot/execute.sh: not found
Answer the question
In order to leave comments, you need to log in
It should have been written like this:
*/30 * * * * /bin/bash /root/cherdak_bot/execute.sh
Because the path is not correct, even in your task they are different.
Or typo, as mentioned above, or it's another user's cron, and he does not see the files in / root
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question