Transmission won't launch script after download on Ubuntu Server 18.04.2

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.txt

I 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.sh

After 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!

4

1 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like