|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
How to trigger a .exe on server via extender?
I'm trying to add a command on the "Exit" menu of SageTV 7 that will shutdown the server PC. I've tried to use ExecuteProcess, but it only runs if I'm using a local instance of the SageTV client on the server. Nothing happens at all if I try to run it on the extender.
I had this setup and working on SageTV 6, using SageMC and the dynamic menus system so I know it's possible somehow. Any ideas? |
#2
|
||||
|
||||
I think it's fairly unlikely that ExecuteProcess is doing nothing at all; it's probably trying to do something, but failing in some way or another that you're not detecting. Put some debug logging code in there to make sure the arguments you're passing are what you think they are, and to see what kind of result you get back. Also check your logs for exceptions being thrown, or run with a console window open so you can see errors as they happen.
At a guess, I'd say the faiilure probably has something to do with path or permissions issues resulting from running the code in the service process and possibly under different user credentials than the UI process.
__________________
-- Greg |
#3
|
|||
|
|||
I use the following command.
ExecuteProcess("cmd","/c start","<YOUR COMMAND>" + "\\\"",null,true) Make sure to use \\ instead of a singel \ Which I browed form “Other Programs” from SageMC. You are best creating short cuts to the files you want to run. This way you are not limited to .exe files and you can run scripts that way. I use it to run scripts to switch off/on lights and TVs etc (using Homeeasy). Have wrote a plug-in (private use only) for the Sage Server that checks at a predefined time (12am) to see if there are any extenders connected to the server and if not runs a script to shut the server down. (Have the BIOS set to switch back on at 7am). Do want to write a plug-in at some point for Sage7 when I get the time. Dean
__________________
Darkside: DVB-C x4 DVB-T2 x2 HD-300 x4 Lightside: DVB-C x2 DVB-T2 x4 HD-300 x3 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV.exe and SageTVService.exe | joe123 | SageTV Software | 0 | 04-13-2010 10:13 AM |
HD200 same as running SageTV.exe on server? | Farm | SageTV HD Theater - Media Player | 4 | 06-17-2009 12:28 PM |
MPEG1 playback on extender and high CPU of SageTV.exe | krasev | SageTV Beta Test Software | 19 | 11-26-2007 03:44 PM |
How do you turn off ir.exe support on Server? | mdmint | Hardware Support | 2 | 01-24-2005 12:17 PM |
Encoding Server support in SageTV.exe | cassis6 | SageTV Beta Test Software | 0 | 10-22-2004 08:31 AM |