linux一般使用
crontab -e
编辑定时任务,但是在树莓派设置定时却没用。
解决方案:
nano /etc/crontab
这个命令设置定时任务可以指定用户(pi或者root)。
参考链接:
https://askubuntu.com/questions/1120064/what-is-the-difference-between-crontab-e-and-nano-etc-crontab
https://sanii.cn/article/310
linux一般使用
crontab -e
编辑定时任务,但是在树莓派设置定时却没用。
解决方案:
nano /etc/crontab
这个命令设置定时任务可以指定用户(pi或者root)。
参考链接:
https://askubuntu.com/questions/1120064/what-is-the-difference-between-crontab-e-and-nano-etc-crontab
https://sanii.cn/article/310