I am on a completely fresh install.
After installation I have only installed Transmission. (transmission-cli transmission-common transmission-daemon)
Then I created a file under /var/lib/transmission-daemon/downloads named script.sh:
echo "Test" > test.txtI have changed ownership of the file and made it executable:
$ sudo chown debian-transmission script.sh
$ sudo chgrp debian-transmission script.sh
$ sudo chmod 775 script.sh
$ sudo a+x script.shAfter this I have modified my setting.json so it executes the script:
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/var/lib/transmission-daemon/downloads/script.sh",And yet, after I add a torrent to the web interface it just does not lauches the script after the download is completed.
I am strugling with this for 2 days now and have no idea whatsoever. I wasn't abled to turn on logging either.
Any idea is very much appreciated!
41 Answer
The problem is that I have to specify a full path for the output file in the script:
echo "Test" > /var/lib/transmission-daemon/downloads/test.txt