Take the tour ×
alias download='while true; do timeout -s 9 1260 aria2c *.torrent --lowest-speed-limit=1024 --disable-ipv6=true --seed-time=0 --max-connection-per-server=6 --enable-rpc=false; sleep 1; done'
alias seed='aria2c --check-integrity=false --bt-seed-unverified=true --lowest-speed-limit=1024 --disable-ipv6=true --max-connection-per-server=6 -d . *.torrent --seed-time=999999 --seed-ratio=999999.0'

So I'm using these aliases with aria2 to download torrent files. Theres only 1 problem with this: how can I put the finished downloads in a directory? (using the "download" alias)

p.s.: the "while true..." in the "download" alias is there because the download "slows down"... after a while, and I need to restart aria2c :D

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

The p.s. strikes me as a bad idea given the way BT works*, but a proper event hook should do the trick:

Let's see an example of how arguments are passed to command:

$ cat hook.sh
$ aria2c --on-download-complete hook.sh http://example.org/file.iso

The --seed-time and --seed-ratio options kind of automate many use-cases, too.

(* better check your settings and read up on BitTorrent)

share|improve this answer
add comment

Your Answer


