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
echo "*/1 * * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
sudo crontab cron.cron
sudo systemctl restart cron.service
sudo rm -rf cron.cron