Public domain
Download multiple torrent files
#!/bin/bash
screen -dmS download
sleep 1
I=1
for F in *.torrent; do
cat > screen-cmd-file << EOF
screen
select $I
title "download$I"
exec bash -c "aria2c --file-allocation=none --max-upload-limit 8K --seed-time 2 $F"
EOF
screen -r download -X source screen-cmd-file
rm screen-cmd-file
sleep 1
done
BY: Pejman Moghadam
TAG: aria2, screen, bash-script, bash
DATE: 2014-03-08 19:27:40