i've installed OpenElec (last stable 5.0.8) and i've configured transmission-daemon to run a script when torrent is done.
the script: (placed in /storage/transpp.sh)
Code: Select all
#!/bin/bash
filebot -script fn:amc --output "$HOME/Media" --log-file amc.log --action duplicate --conflict override -non-strict --def music=y artwork=y "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
Code: Select all
chmod +rx /storage/transpp.sh
chmod 777 /storage/transpp.sh
Code: Select all
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/storage/transpp.sh",
If i run the file manually, it works. (i can verify because filebot create a log at every launch.)
In OpenElec there is only one user: root, so i don't think it could be a permission issue.
Does anyone know why?