mirror of
https://github.com/NewFuture/DDNS.git
synced 2022-04-19 20:24:44 +00:00
Windows Task Scheduler is not CMD, the redirecting operator '>>' can only effect in CMD. So the operator will cause '0x2' error in Windows Task Scheduler. My last commit https://github.com/NewFuture/DDNS/pull/208/commits/8ea0d5976de4a668e973e19548c8f2315f7b930f will force add the redirecting to the Win TS due to the double quotes in ```RUNCMD```, while the previous commit did not add redirecting to Win TS as expected and the log file was always empty. One solution in this commit is to change the running program in Win TS from ddns.exe to cmd, then run ddns.exe in cmd. So that the Task can run as scheduled and the log can also be redirected.
使用二进制文件 
各平台下载/使用方式
-
Windows
- 下载
ddns.exe运行 - [可选] 定时任务 下载
create-task.bat于相同目录,以管理员权限运行
- 下载
-
Ubuntu
# 1. 下载ddns
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_SOURCEBRANCHNAME}/ddns -#SLo ddns && chmod +x ddns
# 2. [可选] 定时任务(当前目录):
curl -sSL https://github.com/NewFuture/DDNS/releases/download/${BUILD_SOURCEBRANCHNAME}/create-task.sh | bash
-
Mac OSX
# 命令行下载
curl https://github.com/NewFuture/DDNS/releases/download/${BUILD_SOURCEBRANCHNAME}/ddns-osx -#SLo ddns && chmod +x ddns
使用PIP 安装

Pypi 安装当前版本或者更新最新版本
- 安装当前版本[current version]:
pip install ddns=${BUILD_SOURCEBRANCHNAME} - 更新最新版[update latest version]:
pip install -U ddns