====== transmission-remote ======
{{tag>transmission frostwall}}
List all torrents
transmission-remote -n Transmission:password -l
List all files in a torrent
transmission-remote -n Transmission:password -t 65 -f
Set all to not download
transmission-remote -n Transmission:password -t 65 -G all
Set file 37 to download
transmission-remote -n Transmission:password -t 65 -g37
Get file numbers from search string
# transmission-remote -n Transmission:password -t 140 -f | grep -i "resident evil" | awk '{print $1}' | sed 's/:/,/'|tr -d '\n'
12,14,159,217,
Set all 100% downloaded files to 'download' (after setting all files to not download)
$ transmission-remote 192.168.1.24:9091 -n transmission:password -t 104 -f | grep -i '100%' | awk '{print $1}' | sed 's/://g' | paste -sd, - | xargs -I {} transmission-remote 192.168.1.24:9091 -n transmission:password -t 104 -g{}
===== Help =====
[~] # transmission-remote
transmission-remote 2.84 (14307)
A fast and easy BitTorrent client
http://www.transmissionbt.com/
Usage: transmission-remote [host] [options]
transmission-remote [port] [options]
transmission-remote [host:port] [options]
transmission-remote [http(s?)://host:port/transmission/] [options]
See the man page for detailed explanations and many examples.
Options:
-h --help Display this help page and exit
-a --add Add torrent files by filename or URL
-as --alt-speed Use the alternate Limits
-AS --no-alt-speed Don't use the alternate Limits
-asd --alt-speed-downlimit max alternate download speed (in
kB/s)
-asu --alt-speed-uplimit max alternate upload speed (in kB/s)
-asc --alt-speed-scheduler Use the scheduled on/off times
-ASC --no-alt-speed-scheduler Don't use the scheduled on/off times
--alt-speed-time-begin
===== Debian / Ubuntu Installation =====
sudo add-apt-repository ppa:transmissionbt/ppa
apt-get install transmission-cli
==== References ====
[[https://help.ubuntu.com/community/TransmissionHowTo|TransmissionHowTo]]