输入文件
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
答案 0 :(得分:2)
确保在dir
和out
选项的开头使用空格,而不是标签。 (aria2c
使用标签为multi-connection downloading指定备用网址。)
运行awk
检查标签:
awk "/\t/" task.txt