I´m trying to get my linux box to send me a notification when a download is completed.
In .rtorrent.rc I have the following line
Code: Select all
system.method.set_key = event.download.finished,notify_me,"execute=~/sendNotification.sh,$d.get_name="
And I have a script sendNotification.sh with the following lines.
Code: Select all
#!/bin/sh
API_KEY="MYKEY"
SUBJECT="Download completed"
MESSAGE=$1
curl -d "apikey=$API_KEY&application=rTorrent&event=$SUBJECT&description=$MESSAGE" https://api.prowlapp.com/publicapi/add
Anyone got any idea what´s wrong with the code?