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
i'm assuming you're running Lenny and there is no transmission-daemon package. in fact all the Tranmission packages available in Lenny are ancient and out-dated. one solution is to use lenny-backports:
http://backports.debian.org/Instructions/
and then do "apt-get -t lenny-backports install ...
I've installed transmission on Debian Lenny headless..
doing "apt-get install" in a pure Lenny system will bring in TR 1.22 .. a really ancient and dated version. i don't think it even uses a settings.json file.
you could consider installing from lenny-backports and getting TR 1.77, which does ...
that wiki page is probably out of date since it was written when libevent was included in the transmission source package, but it isn't in now. it happened to me also running Debian, and solution was to:
apt-get install libevent-dev
which brings in version 1.4, older versions won't work. i googled ...