From 4e420b6d1300ec33f3c568695576786cd299ed1b Mon Sep 17 00:00:00 2001 From: IamDaShan <87328346+IamDaShan@users.noreply.github.com> Date: Sat, 1 Jan 2022 21:51:27 +0800 Subject: [PATCH] Update task.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ubuntu环境,无法定时更新解析,经查发现命令少了python3 开头,添加上python3 开头后,问题解决。 --- task.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task.sh b/task.sh index 17f6ad57..174131dd 100755 --- a/task.sh +++ b/task.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash RUN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; -CMD="\"$RUN_DIR/run.py\" -c \"$RUN_DIR/config.json\" >> \"$RUN_DIR/run.log\"" +CMD="python3 \"$RUN_DIR/run.py\" -c \"$RUN_DIR/config.json\" >> \"$RUN_DIR/run.log\"" echo "*/5 * * * * root $CMD" > /etc/cron.d/ddns; /etc/init.d/cron reload;