@iBadCoder

Почему не выполняется CRON?

Имеется вот такая CRON команда:
* * * * * pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out


Но она не выполняется.

В логах вижу:

Oct  2 14:00:01 not CRON[840008]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:01:01 not CRON[840032]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:02:01 not CRON[840050]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:03:01 not CRON[840067]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:04:01 not CRON[840078]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:05:01 not CRON[840091]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:06:01 not CRON[840107]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:07:01 not CRON[840126]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:08:01 not CRON[840145]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)
Oct  2 14:09:01 not CRON[840170]: (root) CMD (pkill -9 -f supports_bot.py; nohup /usr/bin/python3 /home/supports_team/supports_bot.py > /home/supports_team/logs/proccess.out)


Куда копать?
  • Вопрос задан
  • 126 просмотров
Пригласить эксперта
Ответы на вопрос 3
Adamos
@Adamos
/usr/bin/pkill
/usr/bin/nohup
В Кроне PATH нет.
Ответ написан
@Drno
Сделайте bash скривт из этого и укажите на него
Ответ написан
saboteur_kiev
@saboteur_kiev Куратор тега Linux
software engineer
Как проверяешь что команда не выполилась?
В /home/supports_team/logs/proccess.out что-то записывается?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы