Run external program on torrent completion

Linux specific questions, problems.

Moderators: Moderator, Global Moderator

Post Reply
Leverz
Newbie
Newbie
Posts: 4
Joined: Fri Aug 09, 2019 2:32 pm

Run external program on torrent completion

Post by Leverz » Sat Aug 10, 2019 2:17 am

Hi, I have been trying to get any script to run in this option.
I have tried both python and bash, yet I cannot get the script to run. I have set the scripts to be executable (chmod 755) and I have reduced the scripts to only copy the contents of the download directory, just to ensure it works.

Any script will run from terminal but not from the QBitTorrent option. Am I missing a simple call?

Examples I  tried

Code: Select all

/.../test.py

Code: Select all

python /.../test.py

Code: Select all

 python '/.../test.py'
I have tried everything I can think of from adding quotes to the call, adding the python call at the start before setting location of the script (in bash as well), I could keep going I have gone through it all.

I have even tried it on a windows machine calling batch files, and I can't get it to work there, so any help would be great. I could not find any documentation that talked about this, and a I could not find a thread here with a response/how-to on this.
Thanks in advance.

Leverz
Newbie
Newbie
Posts: 4
Joined: Fri Aug 09, 2019 2:32 pm

Re: Run external program on torrent completion

Post by Leverz » Mon Aug 12, 2019 7:03 am

Is it not possible, or does nobody know how to do it?

Tried on reddit and a few other places, and no one seems to know, it shows the lack of documentation. Anyone know of another client that enables to running of scripts after a download completes?

basecase
Newbie
Newbie
Posts: 8
Joined: Sun Sep 01, 2019 9:27 am

Re: Run external program on torrent completion

Post by basecase » Sun Sep 01, 2019 9:47 am

Hello, I just installed it and gave it a try. I got my bash script to run by entering sh before the path.

Code: Select all

 sh /PATH/TO/MY/SCRIPT.sh "%N" "%F" "%R" "%D"

Post Reply