Guide : Sending Notification and Status mails from a Torrent Client

You can replace the script with whatever action you want , i have script which also to make JTAG Rips for Xbox 360 games after unrar completes and for music it auto captures artwork

For rtorrent
rtorrent.rc changes

Code:
system.method.set_key = event.download.finished,notify_me,"execute=/root/send_email.sh,$d.get_name="

Script - send_email.sh

Code:
#!/bin/bash
echo "$@: Download completed" | mailx dinjo@gmail.com

For Transmission

Script - unrar.sh
Code:
#!/bin/bash
echo "$TR_TORRENT_NAME Download Completed" | mailx dinjo@gmail.com

settings.json changes

Code:
"script-torrent-done-enabled": true, 
"script-torrent-done-filename": "/root/send_email.sh",

For Deluge - There are plugins available which lets you do things easily.

IMO transmission is not a very good client especially when you want aggressive peering and rtorrent and deluge really shines here though deluge can literally rape your CPU but it can be really unstable too especially when you are on headless despite with swap enabled i found rtorrrent has perfect balance between aggressive peering and resource consumption.
 
Back
Top