DDNS icon indicating copy to clipboard operation
DDNS copied to clipboard

Update task.sh

Open IamDaShan opened this issue 4 years ago • 2 comments

ubuntu环境,无法定时更新解析,经查发现命令少了python3 开头,添加上python3 开头后,问题解决。

IamDaShan avatar Jan 01 '22 13:01 IamDaShan

https://github.com/NewFuture/DDNS/blob/914f3c09c3c133b1883d5002462d68cfe59984aa/run.py#L1 这个脚本本身是可执行脚本。 直接 ./run.py 可以运行么?

NewFuture avatar Jan 02 '22 08:01 NewFuture

https://github.com/NewFuture/DDNS/blob/914f3c09c3c133b1883d5002462d68cfe59984aa/run.py#L1

这个脚本本身是可执行脚本。 直接 ./run.py 可以运行么?

原来这样子,不好意思。我试了./run.py不可以运行,但是把#!/usr/bin/env python 改成#!/usr/bin/env python3 就可以运行了。 Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 868, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 741, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 465, in format record.message = record.getMessage() File "/usr/lib/python2.7/logging/init.py", line 329, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Logged from file huaweidns.py, line 129 2022-01-05 03:58:45,452 <huaweidns.request> 139@/home/dashan/Documents/DDNS/dns/huaweidns.py

IamDaShan avatar Jan 05 '22 12:01 IamDaShan