配置crontab定时任务

添加crontab任务:

crontab -e

*/1 * * * * sh /目录/xx.sh >> /目录/xx.log

*/1 * * * * sh /root/nb/iot-data.sh >> /root/nb/schedule/iotschedule.log

重启crontab服务:

systemctl restart crond.service

查看crontab任务列表:

crontab -l

posted @ 2022-03-04 16:47  大日很忧伤  阅读(105)  评论(0编辑  收藏  举报