Page 1 of 1

Question regarding the Execute Plugin and powershell scripts

Posted: Tue Nov 03, 2015 8:04 pm
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

Re: Question regarding the Execute Plugin and powershell scr

Posted: Wed Nov 04, 2015 11:19 am
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