What follows is a rather reliable torrent download script. It uses aria2 to download torrents and runs on a command line. It also uses gtorrent.inp which you create with one torrent url on each line. I control the download torrent by commenting the urls I don't want downloaded. I haven't figured out how to have aria2 download one torrent then move onto the next torrent while continuing to seed the last url yet. That maybe is for later. The other file this script creates is gtorrent.log. That file saves output of aria2 for users to read later. If you run gtorrent.sh, you can also read output of aria2 on the terminal as it starts up. I read long enough to find if the torrent I want to download actually starts downloading then hit control-z to put gtorrent.sh into the background. To check gtorrent.log, I use wc -l gtorrent.log a few times to see if the number of lines increases. When it doesn't any longer, I use grep -i "download was complete" gtorrent.log To check and find if aria2 finished its download and has started seeding. Then grep -i seeders gtorrent.log gets me the number of seeders and number of leechers on the torrent. cut here.
#!/usr/bin/env bash # file: gtorrent.sh - get torrents with aria2c. # dependencies: aria2. GF=gtorrent.inp if test -f "$GF"; then aria2c --check-integrity=true --log gtorrent.log -d /home/jude/Downloads --bt-stop-timeout=60 --bt-max-peers=0 --bt-min-crypto-level=arc4 --bt-force-encryption=true --seed-time=480 --seed-ratio=2 --continue=true --input-file=gtorrent.inp else echo "useage: put download torrent urls one per line in file gtorrent.inp and try again." fi cut here. -- Jude <jdashiel at panix dot com> "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." Ed Howdershelt 1940. _______________________________________________ Blinux-list mailing list Blinux-list@redhat.com https://listman.redhat.com/mailman/listinfo/blinux-list