From 9ade7ab87008dcee0cbed7098265f59f4ceb86d4 Mon Sep 17 00:00:00 2001 From: xyj <1090822794@qq.com> Date: Tue, 27 Feb 2024 09:59:28 +0800 Subject: [PATCH] update --- cron_set.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cron_set.sh diff --git a/cron_set.sh b/cron_set.sh new file mode 100644 index 0000000..fa4786b --- /dev/null +++ b/cron_set.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +sudo crontab <<-EOF +`sudo crontab -l` +0 * * * * bash /home/admin/cron/del_log.sh +EOF