这是我的crontab,我需要它每5分钟运行一次。
*/5 * * * * /usr/bin/python3 /home/py/Desktop/automation/cron.py
我不明白为什么它不运行
这是cront.py
文件
import random
name = random.randint(44,4400)
with open(str(name) + '.txt', 'w') as f:
f.writelines('test')
如果crontab崩溃了,那么将会创建一些文件,但不会在那里输出
我没有得到我错过的东西。
有人可以帮助我吗?