This commit is contained in:
xyj 2023-12-28 17:11:59 +08:00
parent 7db6f63009
commit c00f2c2c62
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
set -e set -e
sudo crontab -l > cron.cron sudo crontab -l > cron.cron
echo "0 8 * * * sudo /usr/bin/python /home/pi/lot_manager/open_led.py" >> cron.cron echo "0 9 * * * sudo /usr/bin/python /home/pi/lot_manager/open_led.py" >> cron.cron
echo "0 18 * * * sudo /usr/bin/python /home/pi/lot_manager/close_led.py" >> cron.cron echo "0 17 * * * sudo /usr/bin/python /home/pi/lot_manager/close_led.py" >> cron.cron
sudo crontab cron.cron sudo crontab cron.cron
sudo systemctl restart cron.service sudo systemctl restart cron.service
sudo rm -rf cron.cron sudo rm -rf cron.cron