Server-side command when event occurs?

General support for problems installing or using Deluge
Post Reply
tiwas
Member
Member
Posts: 30
Joined: Fri Nov 01, 2019 8:40 am

Server-side command when event occurs?

Post by tiwas »

Hi,
Is there any way to tell deluge daemon som execute a task when a certain event occurs?

My case: I would like to scp files to another server when downloads in certain labels finishes. Is this at all possible? If not, I guess I'll have to try and find some way to react to filesystem events instead.

Thanks!
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Server-side command when event occurs?

Post by mhertz »

It's possible, but requires little effort and scripting, e.g JimboMonkey1234 submitted PR for adding label support to execute plugin(I can build it for you, if need I.e if cannot yourself, dont know if will clean merge though, as from 2016), which you then filter for label upon torrent finished event, or alternatively make your own client-script/plugin doing the same i.e hook upon torrentfinishedevent and compare label before conditionally running commands/script.

Edit: Thought I remembered having extended the execute plugin myself once, but couldn't Initially find, but looking little harder I found now, though is for labelplus not label plugin, though can be easilly changed, which I can do if needed: viewtopic.php?p=233889#p233889
tiwas
Member
Member
Posts: 30
Joined: Fri Nov 01, 2019 8:40 am

Re: Server-side command when event occurs?

Post by tiwas »

mhertz wrote: Mon Feb 28, 2022 6:30 pm It's possible, but requires little effort and scripting, e.g JimboMonkey1234 submitted PR for adding label support to execute plugin(I can build it for you, if need I.e if cannot yourself, dont know if will clean merge though, as from 2016), which you then filter for label upon torrent finished event, or alternatively make your own client-script/plugin doing the same i.e hook upon torrentfinishedevent and compare label before conditionally running commands/script.

Edit: Thought I remembered having extended the execute plugin myself once, but couldn't I itially find, but looking little harder I found now, though is for labelplus not label plugin, though can be easilly changed, which I can do if needed: viewtopic.php?p=233889#p233889
Thanks. Will this be able to run on the daemon, or will I need to keep deluge client running to execute?
mhertz
Moderator
Moderator
Posts: 2331
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Server-side command when event occurs?

Post by mhertz »

Running on daemon without any clients connected. You're welcome :)
tiwas
Member
Member
Posts: 30
Joined: Fri Nov 01, 2019 8:40 am

Re: Server-side command when event occurs?

Post by tiwas »

mhertz wrote: Mon Feb 28, 2022 6:37 pm Running on daemon without any clients connected. You're welcome :)
That's really cool! I'll check with my provider, and if it's allowed I might take you up on the offer to help :)

Thanks :D
Post Reply