I spent some time today trying to get the Execute.pm plug-in working
with SlimServer on my Windows XP box.  Though I did get it working, the
strange configuration I came up with made me wonder if I was missing
something obvious.  There doesn’t seem to be much information in the
forum archives or in the wiki about getting Execute.pm working on
Windows boxes.

Anyway, this is what I did to get it working:

1). Create a scripts directory at C:\Program
Files\SlimServer\server\scripts.

2). Create a "Shutdown Media Server.cmd" batch file and place it in the
scripts dir.  The cmd file contains a single command: 
Code:
--------------------
    @start "Shutdown" psshutdown.exe –f –k –t 60
--------------------

(Psshutdown.exe is from the pstools collection at sysinternals.com.)

3). Create a new dir off of scripts with the same name as the cmd file:
e.g.:  C:\Program Files\SlimServer\server\scripts\Shutdown Media
Server.

With the above setup, I could select "Shutdown Media Server" in the web
interface to the plug-in and also execute it from the SB using the
remote.

Is this need to create a folder with the same base name as the script
specific to Windows?  Is this documented anywhere?


-- 
gharris999
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to