lot_manager/conf/example/bash/cron_set.sh

7 lines
250 B
Bash
Raw Normal View History

2024-01-05 16:39:44 +08:00
#!/bin/bash
set -e
sudo crontab -l > cron.cron
2024-01-06 14:13:32 +08:00
echo "0 */1 * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
2024-01-05 16:39:44 +08:00
sudo crontab cron.cron
sudo systemctl restart cron.service
sudo rm -rf cron.cron