This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Made by JD from these two scripts, good for outputting results to a file as a scheduled task | |
## lacks the --auth=user:password as i don't use auth on my server | |
## http://goedonthouden.com/2013/04/21/transmission-daemon-auto-remove-torrents/ | |
## https://gist.github.com/bulljit/791609 | |
TORRENTLIST=`transmission-remote --list | sed -e '1d;$d;s/^ *//' | cut --only-delimited --delimiter=' ' --fields=1` | |
echo "Getting torrent list from transmission" | |
for TORRENTID in $TORRENTLIST | |
do |