home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Kill a process when going to stanby, then...
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vecnar" data-source="post: 628798" data-attributes="member: 73096"><p>I am writing to update </p><p>powerscheduler plugin in tv server can execute batch script or any other program which can receive parameters (suspend and wakeup) from powerscheduler plugin.</p><p>I wrote a small batch script with suspend and wakeup parameter and works for me in RC4, haven't tried on earlier versions but you can try.</p><p>Just replace commands i use with anything you like. You can also output echoes to a file to make sure that it did perform an action by adding >> and path to file. e.g. echo passed parameter didn't match suspend or wakeup >> c:\test.log</p><p></p><p></p><p></p><p></p><p></p><p></p><p>echo off</p><p>echo #################################### </p><p>echo %time% </p><p>echo value passed is %1 </p><p></p><p>if "%1"=="suspend" goto suspend</p><p>if "%1"=="wakeup" goto wakeup</p><p></p><p>echo #####################################</p><p>echo passed parameter didn't match suspend or wakeup</p><p>exit</p><p></p><p>:suspend</p><p>echo #####################################</p><p>echo %time% </p><p></p><p>rem Place commands below to execute on suspend</p><p></p><p>"C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 -channel 1~0~0</p><p>ping -n 2 localhost</p><p>"C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 off.ir</p><p></p><p>echo suspend parameter has been passed successfully </p><p></p><p></p><p>exit</p><p></p><p>:wakeup</p><p></p><p>echo #####################################</p><p>echo %time% </p><p></p><p>rem Place commands below to execute on wakeup</p><p></p><p>ping -n 7 localhost</p><p>"C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 -channel 1~0~0</p><p>ping -n 2 localhost</p><p>"C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 off.ir</p><p></p><p>echo wakeup parameter has been passed successfully </p><p></p><p></p><p>exit</p></blockquote><p></p>
[QUOTE="vecnar, post: 628798, member: 73096"] I am writing to update powerscheduler plugin in tv server can execute batch script or any other program which can receive parameters (suspend and wakeup) from powerscheduler plugin. I wrote a small batch script with suspend and wakeup parameter and works for me in RC4, haven't tried on earlier versions but you can try. Just replace commands i use with anything you like. You can also output echoes to a file to make sure that it did perform an action by adding >> and path to file. e.g. echo passed parameter didn't match suspend or wakeup >> c:\test.log echo off echo #################################### echo %time% echo value passed is %1 if "%1"=="suspend" goto suspend if "%1"=="wakeup" goto wakeup echo ##################################### echo passed parameter didn't match suspend or wakeup exit :suspend echo ##################################### echo %time% rem Place commands below to execute on suspend "C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 -channel 1~0~0 ping -n 2 localhost "C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 off.ir echo suspend parameter has been passed successfully exit :wakeup echo ##################################### echo %time% rem Place commands below to execute on wakeup ping -n 7 localhost "C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 -channel 1~0~0 ping -n 2 localhost "C:\Program Files\IR Server Suite\irblast.exe" -port Port_1 off.ir echo wakeup parameter has been passed successfully exit [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Kill a process when going to stanby, then...
Contact us
RSS
Top
Bottom