添加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