I've been trying to get a script to run using transmissions "Script torrent done" feature, but nothing ever works. I've done a chmod +x on the script as well as a chown user:group /myscript that is the same user:group as defined in /etc/config/transmission, but nothing ever works. I've resorted to just referencing the script in /etc/crontabs/root file on a 1 minute timer but after years of doing it this way, its starting to have negative effects with other programs I'm using and creating unnecessary CPU load.
My question is if there is something i'm missing or some guide to implementing my script correctly into transmission because I've googled this countless times and the search results are always irrelevant to the platform, usage, or my inquiry about troubleshooting the "Script torrent done" script.
The script has run perfectly for years in crontabs but it's just time I look into migrating my script into transmission like i always meant for it to be.
There is no change from transmissions end. I can however run the script manually now under the target user.
# su -l -c /etc/openvpn/finish1 immortal
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r21885-f86658e269
-----------------------------------------------------
+ exec
Here is the log output from when I run it manually.
The part where it says responded: "success" on the 10th line is all I really care about so I now know that the script can run properly under the user that transmission is using.
I'm starting to remember why I said forget this feature and just put this script into crontabs 10 years ago. This feature simply don't work for me and infuriates me because everyone has a solution that doesn't work for me.
Thanks but no thanks guys. I'll be back in 10 years and we can try this again.