script-torrent-done-filename script not firing

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Alkaaran
Posts: 1
Joined: Thu Dec 09, 2010 8:47 pm

script-torrent-done-filename script not firing

Post by Alkaaran »

Hi there,

I want to have an email notification whenever a download is completed but the script I configured is not firing:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "\/home\/torrent_done.sh",

Script:
echo "haha !!!" >> /tmp/test.test
echo "Un torrent est termine de se telecharger : http://mydomain/downloads" | mail -s "Torrent termine" myself@gmail.com

Nothing in the log, the script is chmoded +x for everyone.

Help please ! :/
gunzip
Posts: 272
Joined: Wed May 05, 2010 2:12 am

Re: script-torrent-done-filename script not firing

Post by gunzip »

you seem to have left out the "shebang" line (the interpreter the script is to run under). try this:


#!/bin/bash
echo "haha !!!" >> /tmp/test.test
echo "Un torrent est termine de se telecharger : http://mydomain/downloads" | mail -s "Torrent termine" myself@gmail.com
Post Reply