Bash script - Starting aria2 inside gnu screen ============================================= Public domain ******************************************************************************** ### Starting gnu screen with multiple aria2 instances and leave screen open after command compeletion 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_