Skip to content

Instantly share code, notes, and snippets.

View darxtorm's full-sized avatar

JD darxtorm

  • 15:21 (UTC +10:00)
View GitHub Profile
#!/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