zw963 / asuswrt-merlin-transparent-proxy

transparent proxy base on ss, v2ray, xray, ipset, iptables, chinadns on asuswrt merlin or side router.
MIT License
380 stars 80 forks source link

line 512: export: `=': not a valid identifier #29

Closed ifishball closed 7 years ago

ifishball commented 7 years ago

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 17426 100 17426 0 0 14308 0 0:00:01 0:00:01 --:--:-- 14318 cut: illegal option -- z usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-d delim] [file ...] cut: illegal option -- z usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-d delim] [file ...] ./ss+dnsmasq: line 512: export: =': not a valid identifier % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1357k 100 1357k 0 0 9569 0 0:02:25 0:02:25 --:--:-- 9854 $target' variable must be provided in your's scripts before detect_target. e.g. target=localhost or target=root@123.123.123.123

zw963 commented 7 years ago

please format you output, thanks

ifishball commented 7 years ago

MacOs 系统下,执行 ./ss+dnsmasq admin@192.168.1.1 后: 打印的内容如下: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 15357 100 15357 0 0 7384 0 0:00:02 0:00:02 --:--:-- 7383 cut: illegal option -- z usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-d delim] [file ...] cut: illegal option -- z usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-d delim] [file ...] ./ss+dnsmasq: line 512: export: =': not a valid identifier % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1357k 100 1357k 0 0 39653 0 0:00:35 0:00:35 --:--:-- 27809 $target' variable must be provided in your's scripts before detect_target. e.g. target=localhost or target=root@123.123.123.123

ifishball commented 7 years ago

我用了: https://raw.githubusercontent.com/zw963/deployment_bash/master/deploy_start.sh 也是如此

zw963 commented 7 years ago

你原样贴出来啊, 三个反引号开头,同样的三个反引号结尾,中间原样粘贴所有 terminal 的输出。

2017年8月20日 下午5:55,"fishball" notifications@github.com写道:

MacOs 系统下,执行 ./ss+dnsmasq admin@192.168.1.1 后: 打印的内容如下: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 15357 100 15357 0 0 7384 0 0:00:02 0:00:02 --:--:-- 7383 cut: illegal option -- z usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-d delim] [file ...] cut: illegal option -- z usage: cut -b list [-n] [file ...] cut -c list [file ...] cut -f list [-s] [-d delim] [file ...] ./ss+dnsmasq: line 512: export: =': not a valid identifier % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1357k 100 1357k 0 0 39653 0 0:00:35 0:00:35 --:--:-- 27809$target' variable must be provided in your's scripts before detect_target. e.g. target=localhost or target=root@123.123.123.123

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zw963/asuswrt-merlin-transparent-proxy/issues/29#issuecomment-323575108, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhhBoI8W7LcQOmzanOLPDMHyOeg3OCwks5saAKggaJpZM4O8g-q .

ifishball commented 7 years ago
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15357  100 15357    0     0   7384      0  0:00:02  0:00:02 --:--:--  7383
cut: illegal option -- z
usage: cut -b list [-n] [file ...]
       cut -c list [file ...]
       cut -f list [-s] [-d delim] [file ...]
cut: illegal option -- z
usage: cut -b list [-n] [file ...]
       cut -c list [file ...]
       cut -f list [-s] [-d delim] [file ...]
./ss+dnsmasq: line 512: export: `=': not a valid identifier
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1357k  100 1357k    0     0  39653      0  0:00:35  0:00:35 --:--:-- 27809
`$target' variable must be provided in your's scripts before detect_target.
e.g. target=localhost or target=root@123.123.123.123
ifishball commented 7 years ago

会不会是目前使用的是Zsh的原因?

ifishball commented 7 years ago

不好意思,close 掉吧。应该是我前面的某个步骤有问题。

zw963 commented 7 years ago

不确定,你可以 sh -x ./ss+dnsmasq admin@192.168.1.1,输出内容会很长,你可以只贴出错那一部分。

zw963 commented 7 years ago

可以了? Mac 下没试过

2017年8月20日 下午6:21,"fishball" notifications@github.com写道:

不好意思,close 掉吧。应该是我前面的某个步骤有问题。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zw963/asuswrt-merlin-transparent-proxy/issues/29#issuecomment-323576199, or mute the thread https://github.com/notifications/unsubscribe-auth/AAhhBhKOcvuZSzAdDwxf4jBC1ugV7LXeks5saAjHgaJpZM4O8g-q .