Skip to content

Instantly share code, notes, and snippets.

@jkpark
Created March 14, 2019 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkpark/da82772ad1d50e98945be1d70790b9c0 to your computer and use it in GitHub Desktop.
Save jkpark/da82772ad1d50e98945be1d70790b9c0 to your computer and use it in GitHub Desktop.
post work finished download torrent.
#!/bin/sh
# Transmission script to remove torrent from lists
# The file for logging events from this script
LOGFILE=/var/log/transmission_post_download.log
# Remote login details.
TR_HOST="9091 --auth=transmission_rpc_id:transmission_rpc_pw"
echo "`date +%Y.%m.%d_%H.%M.%S` auto removed : $TR_TORRENT_NAME" >> $LOGFILE
transmission-remote $TR_HOST -t $TR_TORRENT_ID --remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment