From 800e8819853202a76ac53b0890c6b1f2b150570d Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 6 Jan 2024 14:31:52 +0800 Subject: [PATCH] update --- .../example/bash/{cron_set.sh => cron_set_for_32G.sh} | 0 conf/example/bash/cron_set_for_64G.sh | 11 +++++++++++ 2 files changed, 11 insertions(+) rename conf/example/bash/{cron_set.sh => cron_set_for_32G.sh} (100%) create mode 100644 conf/example/bash/cron_set_for_64G.sh diff --git a/conf/example/bash/cron_set.sh b/conf/example/bash/cron_set_for_32G.sh similarity index 100% rename from conf/example/bash/cron_set.sh rename to conf/example/bash/cron_set_for_32G.sh diff --git a/conf/example/bash/cron_set_for_64G.sh b/conf/example/bash/cron_set_for_64G.sh new file mode 100644 index 0000000..74a14b8 --- /dev/null +++ b/conf/example/bash/cron_set_for_64G.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e +sudo crontab -r +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 0 * * * /usr/bin/python /home/pi/lot_manager/delete_lot_data_3_days.py" >> cron.cron +# 64G的才加 +echo "0 * * * * /usr/bin/bash /home/pi/lot_manager/bash/cron_delete_mp4.sh" >> cron.cron +sudo crontab cron.cron +sudo systemctl restart cron.service +sudo rm -rf cron.cron \ No newline at end of file