Answer the question
In order to leave comments, you need to log in
Cron task not running?
It is necessary that every 10 minutes the script is launched, I registered such a task
*/10 * * * * /usr/bin/python3 /root/membot/vkbot.py > /dev/null 2>&1
/usr/bin/python3 /root/membot/vkbot.py > /dev/null 2>&1
Feb 12 17:20:01 debian CRON[16590]: (root) CMD (/usr/bin/python3 /root/membot/vkbot.py > /dev/null 2>&1)
Answer the question
In order to leave comments, you need to log in
try like this:
*/10 * * * * cd /root/membot/ && python3 vkbot.py > /dev/null 2>&1
Above tasks
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
And the problem may be simple, the line feed must be in the crontab file after the task.
Just a newline, you know?
Today I ran into an old children's problem again, I thought for a long time :) let it stay here, next time I forget it again, I'll find it here :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question