Page 1 of 1

Execute plugin won't run

Posted: Fri May 22, 2015 10:54 am
by TPG
Hello everyone,
I have set up deluge daemon to run on a Raspberry Pi 2 and a ThinClient running from my Linux laptop. Everything is working great.
Now I'm trying to execute simple bash script upon completion to dump torrent info in a log file. My script is:

Code: Select all

#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
echo "Torrent Details: " $torrentname $torrentpath $torrentid  >> /home/code/deluge_scripts/completed.log
The bash file is saved on the local computer running the ThinClient, set to be executable and owned by the same user running the ThinCleint.

Yet the script is not running upon complication.

More info:
Client: 1.3.11
Server: 1.3.3
libtorrent: 0.15.10.0

Any input will be highly appreciated.

Thanks

Re: Execute plugin won't run

Posted: Fri May 22, 2015 11:13 am
by Shryp
I haven't used that plugin myself, but just thinking about it makes it seem like it would be running on the daemon so maybe it is logging on the pi.

Re: Execute plugin won't run

Posted: Fri May 22, 2015 1:01 pm
by TPG
Shryp wrote:maybe it is logging on the pi.
As you can see from the bash, the log file should be under home/'user_name' on the local machine.

Re: Execute plugin won't run

Posted: Fri May 22, 2015 2:11 pm
by TPG
It works!
For anyone who's facing or might face the same problem, here is the solution:
I moved the whole thing to the Raspberry Pi. Saved the script there and pointed it to log there as well.

Have a nice Linux{ing} everyone

Re: Execute plugin won't run

Posted: Mon Sep 27, 2021 10:59 am
by haydent
Note, after enabling plugin deluge or deluged (daemon if used) must be restart