改成可以控制下載thread數量
function pget()
{
thread=5
case $# in
1)
addr=$1
;;
2)
thread=$1
addr=$2
;;
*)
echo "usage:"
echo "pget [URL] (default thread:5)"
echo "or"
echo "pget [thread] [URL]"
exit 1
;;
esac
echo thread : $thread
echo address : $addr
cmd="pget -n $thread $addr; exit"
lftp -e "$cmd"
}
沒有留言:
張貼留言