加载中...

树莓派定时任务


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


文章作者: Muryor
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Muryor !
评论
  目录