lot_manager/conf/example/bash/cron_set_for_64G.sh

11 lines
463 B
Bash
Raw Normal View History

2024-01-05 16:39:44 +08:00
#!/bin/bash
set -e
2024-01-06 14:17:04 +08:00
sudo crontab -r
2024-01-05 16:39:44 +08:00
sudo crontab -l > cron.cron
2024-01-06 16:37:21 +08:00
echo "*/2 * * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> 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