NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
horim80
Sep 01, 2015Guide
Transmission torrent done email notification on OS6
on OS4 NAS such as Pro2, Tranmission send a mail when a torrent is done. It was very good function. but it seems not work on OS6 transmission app.
Does anyone make it work on OS6 as well?
I solved it by myself.
Here is the steps
1. turn off the Transmission app on Web-GUI.
2. edit : nano /etc/init.d/transmission
3. find USERNAME=guest:guest and change it to root:root.
4. create a email alert script : nano /data/Transmission/config/email_alert
#!/bin/sh NAIL=/usr/bin/nail SMTP_SERVER=smtp.orange.fr SUBJECT="Torrent Done!" if [ -f /etc/frontview/alert.conf ]; then EmailTo=`/bin/grep "email" /etc/frontview/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'` else EmailTo=`/bin/grep "email" /frontview/conf/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'` fi if [ "$(readlink `which sendmail`)" = "/usr/bin/msmtp" ]; then EmailFrom=`/bin/grep '^from' /etc/msmtprc | /usr/bin/cut -f2 -d' '` else EmailFrom=`/bin/echo $EmailTo | awk '{ print $1 }'` fi echo "From:$EmailFrom To:$EmailTo" # Create the email message EmailFile=/tmp/tmp_email.txt if [ -f "$EmailFile" ]; then rm -f $EmailFile fi touch $EmailFile # Create the message headers echo "Date: `date -R`" >> $EmailFile echo "From: $EmailFrom" >> $EmailFile echo "To: $EmailTo" >> $EmailFile echo "Subject:Torrent Done!" >> $EmailFile echo "MIME-Version: 1.0" >> $EmailFile echo "Content-Type: text/plain; charset=ISO-8859-1" >> $EmailFile echo "" >> $EmailFile # Create the message body /bin/echo "Hostname: $(hostname)" >> $EmailFile /bin/echo "Transmission finished downloading \"$TR_TORRENT_NAME\" on $TR_TIME_LOCALTIME" >> $EmailFile /bin/echo "" >> $EmailFile /bin/echo "----------------------------------------------------------------------" >> $EmailFile /bin/echo "Your add-ons developer Super-Poussin" >> $EmailFile /bin/cat $EmailFile |/usr/sbin/sendmail -f $EmailFrom $EmailTo #$NAIL -v -S from="$EmailFrom" -S smtp -s "$SUBJECT" -S smtp=$SMTP_SERVER "$EmailTo" < $EmailFile rm -f $EmailFile
5. change file permission : chmod 755 /data/Transmission/config/email_alert
6. edit setting file : nano /data/Transmission/config/settings.json
7. change a value as below :
"script-torrent-done-enabled": true, "script-torrent-done-filename": "/data/Transmission/config/email_alert",
8. Turn on Transmission app on WEB-GUI.
You will receive alert email when torrent download is done.
2 Replies
Replies have been turned off for this discussion
- BrianL2NETGEAR Employee Retired
Hi horim80,
Let's ask super_poussin if this feature available and if not, can this be added on the next update of the transmission add-on for OS6.
Kind regards,
BrianL
NETGEAR Community - horim80Guide
I solved it by myself.
Here is the steps
1. turn off the Transmission app on Web-GUI.
2. edit : nano /etc/init.d/transmission
3. find USERNAME=guest:guest and change it to root:root.
4. create a email alert script : nano /data/Transmission/config/email_alert
#!/bin/sh NAIL=/usr/bin/nail SMTP_SERVER=smtp.orange.fr SUBJECT="Torrent Done!" if [ -f /etc/frontview/alert.conf ]; then EmailTo=`/bin/grep "email" /etc/frontview/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'` else EmailTo=`/bin/grep "email" /frontview/conf/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'` fi if [ "$(readlink `which sendmail`)" = "/usr/bin/msmtp" ]; then EmailFrom=`/bin/grep '^from' /etc/msmtprc | /usr/bin/cut -f2 -d' '` else EmailFrom=`/bin/echo $EmailTo | awk '{ print $1 }'` fi echo "From:$EmailFrom To:$EmailTo" # Create the email message EmailFile=/tmp/tmp_email.txt if [ -f "$EmailFile" ]; then rm -f $EmailFile fi touch $EmailFile # Create the message headers echo "Date: `date -R`" >> $EmailFile echo "From: $EmailFrom" >> $EmailFile echo "To: $EmailTo" >> $EmailFile echo "Subject:Torrent Done!" >> $EmailFile echo "MIME-Version: 1.0" >> $EmailFile echo "Content-Type: text/plain; charset=ISO-8859-1" >> $EmailFile echo "" >> $EmailFile # Create the message body /bin/echo "Hostname: $(hostname)" >> $EmailFile /bin/echo "Transmission finished downloading \"$TR_TORRENT_NAME\" on $TR_TIME_LOCALTIME" >> $EmailFile /bin/echo "" >> $EmailFile /bin/echo "----------------------------------------------------------------------" >> $EmailFile /bin/echo "Your add-ons developer Super-Poussin" >> $EmailFile /bin/cat $EmailFile |/usr/sbin/sendmail -f $EmailFrom $EmailTo #$NAIL -v -S from="$EmailFrom" -S smtp -s "$SUBJECT" -S smtp=$SMTP_SERVER "$EmailTo" < $EmailFile rm -f $EmailFile
5. change file permission : chmod 755 /data/Transmission/config/email_alert
6. edit setting file : nano /data/Transmission/config/settings.json
7. change a value as below :
"script-torrent-done-enabled": true, "script-torrent-done-filename": "/data/Transmission/config/email_alert",
8. Turn on Transmission app on WEB-GUI.
You will receive alert email when torrent download is done.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!