相關文章

Subscribe
Notify of
guest

8 Comments
Newest
Oldest
灵曦
2012 年 1 月 29 日 下午 2:04

–auth應該是指驗證的用戶名密碼,這個我沒有設置的哦。出錯的關鍵是xargs: invalid option — ‘J’ ,官網也是這樣,參數不能識別呢,博主的實驗環境也是Centos5.5嗎?好奇怪呢> <

灵曦
2012 年 1 月 20 日 下午 11:33

transmission-remote –auth lulala:balala -l | grep 100% | grep Done | awk ‘{print $1}’ | xargs -n 1 -J % ./transmission-remote -t % -r
xargs的-J參數是錯誤的,請修正這個錯誤好嗎?因為對xargs命令用法不熟悉,我個人無法修正這個錯誤。謝謝了,新年快樂。

灵曦
2012 年 1 月 6 日 下午 7:30

SH内容:
[root@localhost ~]# cat /root/.flexget/transmission-cleanup.sh
transmission-remote 5566 -l | grep 100% | grep Done | awk ‘{print $1}’ | xargs -n 1 -J % ./transmission-remote -t % -r
[root@localhost ~]#

灵曦
2012 年 1 月 6 日 下午 7:28

您好,我在修改transmission-cleanup.sh的時候發生了以下錯誤:
xargs: invalid option — ‘J’
我對xargs並不是很熟悉,能不能幫我修復這個錯誤呢?謝謝啦~!
[root@localhost ~]# /root/.flexget/transmission-cleanup.sh
xargs: invalid option — ‘J’
Usage: xargs [-0prtx] [–interactive] [–null] [-d|–delimiter=delim]
[-E eof-str] [-e[eof-str]] [–eof[=eof-str]]
[-L max-lines] [-l[max-lines]] [–max-lines[=max-lines]]
[-I replace-str] [-i[replace-str]] [–replace[=replace-str]]
[-n max-args] [–max-args=max-args]
[-s max-chars] [–max-chars=max-chars]
[-P max-procs] [–max-procs=max-procs] [–show-limits]
[–verbose] [–exit] [–no-run-if-empty] [–arg-file=file]
[–version] [–help] [command [initial-arguments]]
Report bugs to .
[root@localhost~]#

灵曦
2012 年 1 月 6 日 下午 6:27

您好,我在修改transmission-cleanup.sh的时候发生了以下错误:
xargs: invalid option — ‘J’
我对xargs并不是很熟悉,能不能帮我修复这个错误呢?谢谢啦~!