Question regarding the Execute Plugin and powershell scripts

Specific support for Deluge on Microsoft Windows OS
Post Reply
gnardar

Question regarding the Execute Plugin and powershell scripts

Post by gnardar »

I found an old forum post regarding running powershell scripts via the execute plugin where a user was having issues with no real resolution noted. Other then that there really is little information on what exactly Execute looks for in the command other then it needs to be "executable" which my powershell script is..

I'm trying to accomplish this but am having a heck of a time. For testing purposes I'm trying to just run a powershell script that opens a file and it doesn't appear to be working..

Deluge Version 1.3.11 with Execute Plugin Version 1.3

What I have tried:
  • I made sure that my powershell script was executable (you double click the file and it runs)
  • Double checked that the file permissions are accurate for the account running Deluge (also tried just running from the desktop)
  • Run the test .bat file on the Execute page, this worked..
Settings:
  • Event: Torrent Added
  • Command: C:\Users\Gnardar\Desktop\Test.ps1
Has anyone been able to complete this or know if it will even work with powershell scripts?

Thanks in advance,

Gnardar
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Question regarding the Execute Plugin and powershell scr

Post by Cas »

The problem is that a powershell script is not automatically recognised type so needs calling with powershell.exe. The only workaround is to run the script from a bat script or create an exe as per this similar issue: http://forum.deluge-torrent.org/viewtop ... 9&p=204953
Post Reply