Skip to content

Instantly share code, notes, and snippets.

View darxtorm's full-sized avatar

JD darxtorm

  • 03:29 (UTC +11: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