Comments (18)
OK 我发现你是**人,把你的脚本贴出来,我们看看96行是什么代码吧。
from dnspod-shell.
Please check whether you have curl or wget installed.
from dnspod-shell.
may be have not the dirname commond, you can input the full path instead of it
from dnspod-shell.
@ProfFan thx for your response. i checked and confirm that wget and curl have been installed correctly. :)
from dnspod-shell.
@anrip i try to run dirname command from ssh, and get below prompts:
SUSWRT-Merlin R7000_3.0.0.4 Sun Jan 31 12:52:51 UTC 2016
admin@R7000-F2A7:/tmp/home/root# dirname
BusyBox v1.20.2 (2015-12-30 09:41:58 CST) multi-call binary.
Usage: dirname FILENAME
Strip non-directory suffix from FILENAME
from dnspod-shell.
You can try "bash -x " and paste the results here.
from dnspod-shell.
@ProfFan i run the script on a Router but not Mac...
SUSWRT-Merlin R7000_3.0.0.4 Sun Jan 31 12:52:51 UTC 2016
admin@R7000-F2A7:/tmp/home/root# bash -x
-sh: bash: not found
from dnspod-shell.
then sh -x
if you do not have bash
from dnspod-shell.
@anrip 若海好。
96行的代码如下:
DIR=$(dirname -- "$(rreadlink "$0")")
from dnspod-shell.
from dnspod-shell.
现在最重要的是要知道你是什么 shell,因为这个 script 我自己在 zsh、bash 和 sh 上都测试过。
from dnspod-shell.
from dnspod-shell.
@ProfFan merlin 固件用的是busybox,不知道应该算是什么 shell,我运行 sh -x 没有任何回显。
@anrip 不好意思,我的脚本是放在 /jffs/scripts/, 请问如何替换语句?
from dnspod-shell.
@ProfFan 方便给个其他联系方式么?我把sh -x的信息贴出来,里面有IP和token之类的信息,不方便贴在这里。
from dnspod-shell.
from dnspod-shell.
@anrip
不好意思,不大懂 shell 编程,请问该替换哪句?是直接替换96行还是前面的某个变量值?
from dnspod-shell.
DIR=/jffs/scripts/ 即可
from dnspod-shell.
Assumed closed due to inactivity.
from dnspod-shell.
Related Issues (20)
- 泛域名解析 HOT 1
- ipv6地址无法获取 HOT 3
- 请删除。失误!!
- 我在Fetching RecordId这步卡住了 HOT 20
- 能否增加IP相同判断 HOT 4
- 求助:“如何直接获取wan口IP地址直接上报而不使用网络查询” HOT 14
- 脚本更新公网ipv6地址总是选择到临时地址怎么办 HOT 4
- Readme的日期错了。 HOT 1
- ddnspod.sh第5行最好加上source命令来引用ardnspod文件 HOT 1
- 建议增加一个缓存功能,当获取到的ip命中缓存则不执行 HOT 1
- 关于使用Go适配api3.0 HOT 8
- ardnspod代码里边的小问题 HOT 2
- 能否加入支持同一域名对应多个线路的支持? HOT 2
- v6.3.0反复更新重复的IP HOT 18
- 使用DDNS API时,建议加上ttl=120
- arDdnsLookup - 获取不到记录id HOT 1
- ipv6 地址获取代码 HOT 1
- 不能解析泛域名 HOT 2
- 增加说明:用一条命令即可执行 HOT 3
- windows解决方案? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnspod-shell.