update
This commit is contained in:
parent
3bee31fcbd
commit
46e5121807
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
sudo crontab -r
|
||||||
sudo crontab -l > cron.cron
|
sudo crontab -l > cron.cron
|
||||||
echo "0 */1 * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
|
echo "0 */1 * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
|
||||||
|
echo "0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron
|
||||||
|
echo "*/15 * * * * /usr/bin/python /home/pi/lot_manager/delete_than20G.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
|
|
@ -1,9 +1,5 @@
|
||||||
# 每天0:0分执行
|
# 每天0:0分执行
|
||||||
0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py
|
0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py
|
||||||
# 每天08:00分执行
|
|
||||||
0 8 * * * sudo /usr/bin/python /home/pi/lot_manager/open_led.py
|
|
||||||
# 每天18:00分执行
|
|
||||||
0 18 * * * sudo /usr/bin/python /home/pi/lot_manager/close_led.py
|
|
||||||
# 针对32G内存卡的定时,额外加这个
|
# 针对32G内存卡的定时,额外加这个
|
||||||
# 每隔15分钟进行
|
# 每隔15分钟进行
|
||||||
*/15 * * * * /usr/bin/python /home/pi/lot_manager/delete_than20G.py
|
*/15 * * * * /usr/bin/python /home/pi/lot_manager/delete_than20G.py
|
||||||
|
|
|
@ -3,7 +3,3 @@
|
||||||
0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh
|
0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh
|
||||||
# 每天0:0分执行
|
# 每天0:0分执行
|
||||||
0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py
|
0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py
|
||||||
# 每天08:00分执行
|
|
||||||
0 8 * * * sudo /usr/bin/python /home/pi/lot_manager/open_led.py
|
|
||||||
# 每天18:00分执行
|
|
||||||
0 18 * * * sudo /usr/bin/python /home/pi/lot_manager/close_led.py
|
|
Loading…
Reference in New Issue