Aria2c输入文件问题

时间:2011-08-23 17:27:18

标签: unix

我试图用aria2c下载文件

输入文件

 http://aria2.net/files/stable/aria2-1.9.5/aria2-1.9.5.tar.bz2
    dir=/file/old
    out=aria2.old.tar.bz2
  http://aria2.net/files/stable/aria2-1.10.0/aria2-1.10.0.tar.bz2
    out=aria2.new.tar.bz2

使用命令

运行
aria2c -i task.txt

并收到

2011-08-23 12:23:14 ERROR - Unrecognized URI or unsupported protocol: dir=/file/old

2011-08-23 12:23:14 ERROR - Unrecognized URI or unsupported protocol: out=aria2.old.tar.bz2

2011-08-23 12:23:14 ERROR - Unrecognized URI or unsupported protocol: out=aria2.new.tar.bz2

1 个答案:

答案 0 :(得分:2)

确保在dirout选项的开头使用空格,而不是标签。 (aria2c使用标签为multi-connection downloading指定备用网址。)

运行awk检查标签:

awk "/\t/" task.txt