2024-01-05 16:39:44 +08:00
|
|
|
#!/bin/bash
|
2024-01-06 17:06:57 +08:00
|
|
|
sudo crontab -r
|
2024-01-05 16:39:44 +08:00
|
|
|
sudo crontab -l > cron.cron
|
2024-01-06 17:06:57 +08:00
|
|
|
echo "0 * * * * supervisorctl restart data_upload" >> cron.cron
|
2024-01-06 14:17:04 +08:00
|
|
|
echo "0 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron
|
2024-01-06 14:31:52 +08:00
|
|
|
# 64G的才加
|
|
|
|
echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh" >> cron.cron
|
2024-01-05 16:39:44 +08:00
|
|
|
sudo crontab cron.cron
|
|
|
|
sudo systemctl restart cron.service
|
2024-01-06 14:27:05 +08:00
|
|
|
sudo rm -rf cron.cron
|