Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here?
MOVEDIR=/pub/sabnzbd/complete # the folder to move completed downloads to
IP=192.168.5.90
# ?or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
# use transmission-remote to get torrent list from transmission-remote list
# use sed to delete first / last line of output, and remove leading spaces