Skip to content

Instantly share code, notes, and snippets.

@belgotux
Created December 24, 2022 13:25
Show Gist options
  • Save belgotux/56d2f04bb641ceb15e29e3e37720233a to your computer and use it in GitHub Desktop.
Save belgotux/56d2f04bb641ceb15e29e3e37720233a to your computer and use it in GitHub Desktop.
Deluge wrapper notification
#!/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 $?
#!/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 $?
#!/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