Can I run a perl script directly from deluge on complete?

General support for problems installing or using Deluge
Post Reply
10481
New User
New User
Posts: 3
Joined: Fri Oct 31, 2014 12:21 am

Can I run a perl script directly from deluge on complete?

Post by 10481 »

I've tried inputting the file location into execute plugin, but it doesn't work. I know the script works because I can run it manually.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can I run a perl script directly from deluge on complete

Post by Cas »

Make sure your script has the hashbang line, is executable and _only_ put the script path in execute plugin.
10481
New User
New User
Posts: 3
Joined: Fri Oct 31, 2014 12:21 am

Re: Can I run a perl script directly from deluge on complete

Post by 10481 »

Cas wrote:Make sure your script has the hashbang line, is executable and _only_ put the script path in execute plugin.
Thanks for the reply. I noticed that python was supported in the documentation, so I just wrote a python script calling the perl script. It works ok now.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can I run a perl script directly from deluge on complete

Post by Cas »

That's just silly. The execute plugin has no notion of the type of script, if a script can be run standalone (i.e. without prefixing with explicit command: ./myscript.pl) then it can be run by execute.
10481
New User
New User
Posts: 3
Joined: Fri Oct 31, 2014 12:21 am

Re: Can I run a perl script directly from deluge on complete

Post by 10481 »

Silly works. I was able to execute the script directly from Transmission, but not from Deluge.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Can I run a perl script directly from deluge on complete

Post by Cas »

Post Reply