Created
December 24, 2022 13:25
-
-
Save belgotux/56d2f04bb641ceb15e29e3e37720233a to your computer and use it in GitHub Desktop.
Deluge wrapper notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
torrentId=$1 | |
torrentName=$2 | |
torrentPath=$3 | |
mailBin=/usr/bin/mail | |
subject="[$HOSTNAME] Deluge finished" | |
body="File ${torrentPath}/${torrentName} is downloaded" | |
recipients="your mail" | |
$pushbulletBin "${subject}" "${body}" | |
echo ${body} | mail -s "${subject}" ${recipients} | |
#echo "$torrentid $torrentname $torrentpath" >> /tmp/$(basename $0 .sh).log | |
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
torrentId=$1 | |
torrentName=$2 | |
torrentPath=$3 | |
pushbulletBin=/usr/local/bin/pushbullet.sh | |
subject="Deluge finished dl" | |
body="${torrentName}" | |
$pushbulletBin "${subject}" "${body}" | |
#echo "$torrentid $torrentname $torrentpath" >> /tmp/$(basename $0 .sh).log | |
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
torrentId=$1 | |
torrentName=$2 | |
torrentPath=$3 | |
telegramBin=/usr/local/bin/telegram-notification.sh | |
subject="Deluge finished dl" | |
body="${torrentName}" | |
$telegramBin -t "${subject}" -m "${body}" | |
#echo "$torrentid $torrentname $torrentpath" >> /tmp/$(basename $0 .sh).log | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment