axel脚本
发表于 : 2011-07-08 20:19
axel批量下载a.txt里面的url 请问那里出了错?
运行结果:
root@OpenWrt:~# screen sh /usr/bin/axel.sh
/var/run/utmp: No such file or directory
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
usr/bin/axel.sh: line 11: ./axel: not found
[screen is terminating]
root@OpenWrt:~#
代码: 全选
#!/usr/bin/env bash
cd /mnt/sda1/1
for line in `cat ./a.txt`
do
./axel -n 10 -a -o ./download $line
done
root@OpenWrt:~# screen sh /usr/bin/axel.sh
/var/run/utmp: No such file or directory
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
/usr/bin/axel.sh: line 11: ./axel: not found
usr/bin/axel.sh: line 11: ./axel: not found
[screen is terminating]
root@OpenWrt:~#