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
MediaPortal 1 Talk
Autorun Script to check/start Argus and MPTVServer Services
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="Bleazle" data-source="post: 1039577" data-attributes="member: 53582"><p>Hi All, </p><p></p><p>I've just posted this on the Argus forum but figured I should post it here as well:</p><p></p><p><strong>The problem:</strong></p><p></p><p>Every now and then I miss a recording or can't start watching Live TV when I want to because either the ArgusTVScheduler and/or the MP TVService services aren't working - this has been known to have a negative effect on the WAF in my house <img src="http://www.argus-tv.com/forum/images/smilies/icon_evil.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /> Both Services are configured to Restart if the Service fails but (obviously) this doesn't always happen for whatever reason. I finally decided to see if I could do anything about this yesterday and here's what I came up with. Please note that I am no computer expert so there may be a more elegant/better way to do this (if there is please post it here)but it's working here so I'm happy <img src="http://www.argus-tv.com/forum/images/smilies/icon_e_wink.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p>Steps:</p><p>1. Create a new folder in your "C" drive called <span style="color: #0000ff">ServicesBAT</span>. Don't put this folder into the "Programmes" folder etc as it may not run. </p><p>2. Unzip the attached file and put the BAT & VBS files into the above folder. <strong>NOTE:</strong>The VBS script runs the BAT script, thereby preventing a DOS window from opening every time the BAT script runs. </p><p>3. If you want to run the script on Startup (I did) create a shortcut to VBS file, open your StartUp folder then cut and paste the shortcut into the Startup folder.</p><p></p><p>The above is all very well and should make sure both Services are running when the computer starts but what if one or the other (or both!) of the Services aren't running at a later time for some reason? I wanted the system to automatically check that both Services were running every 30 minutes and restart them if required. Here's how I'm doing that:</p><p></p><p>1. Run an elevated command prompt: (Open the Start Menu, click on All Programs and Accessories, right click on Command Prompt, and click on Run as administrator)</p><p></p><p>2. Type the following in (change the "30" (as in every 30 minutes) to whatever you prefer))and click "enter". NOTE: Make sure you get the blank spaces in the right place!!:</p><p></p><p>schtasks /create /sc minute /mo 30 /tn "Services Check" /tr C:\ServicesBAT\Services.vbs </p><p></p><p>Click enter. Then EXIT the DOS window.</p><p></p><p>That's it <img src="http://www.argus-tv.com/forum/images/smilies/icon_e_smile.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p>If you want to check to see if the task is running (and has run) start the Task Scheduler (type task into the search area in Windows 7)and click on the "Task Scheduler Library". You will see the task there; when it was last run and when it is going to run next. </p><p></p><p>This task only takes a couple of seconds to run if everything is fine (i.e. both Services are running) and even if it has to start both Services it only runs for as long as it takes them to start and adds virtually nothing to the CPU overhead.</p><p></p><p>Dave</p></blockquote><p></p>
[QUOTE="Bleazle, post: 1039577, member: 53582"] Hi All, I've just posted this on the Argus forum but figured I should post it here as well: [B]The problem:[/B] Every now and then I miss a recording or can't start watching Live TV when I want to because either the ArgusTVScheduler and/or the MP TVService services aren't working - this has been known to have a negative effect on the WAF in my house [IMG]http://www.argus-tv.com/forum/images/smilies/icon_evil.gif[/IMG] Both Services are configured to Restart if the Service fails but (obviously) this doesn't always happen for whatever reason. I finally decided to see if I could do anything about this yesterday and here's what I came up with. Please note that I am no computer expert so there may be a more elegant/better way to do this (if there is please post it here)but it's working here so I'm happy [IMG]http://www.argus-tv.com/forum/images/smilies/icon_e_wink.gif[/IMG] Steps: 1. Create a new folder in your "C" drive called [COLOR=#0000ff]ServicesBAT[/COLOR]. Don't put this folder into the "Programmes" folder etc as it may not run. 2. Unzip the attached file and put the BAT & VBS files into the above folder. [B]NOTE:[/B]The VBS script runs the BAT script, thereby preventing a DOS window from opening every time the BAT script runs. 3. If you want to run the script on Startup (I did) create a shortcut to VBS file, open your StartUp folder then cut and paste the shortcut into the Startup folder. The above is all very well and should make sure both Services are running when the computer starts but what if one or the other (or both!) of the Services aren't running at a later time for some reason? I wanted the system to automatically check that both Services were running every 30 minutes and restart them if required. Here's how I'm doing that: 1. Run an elevated command prompt: (Open the Start Menu, click on All Programs and Accessories, right click on Command Prompt, and click on Run as administrator) 2. Type the following in (change the "30" (as in every 30 minutes) to whatever you prefer))and click "enter". NOTE: Make sure you get the blank spaces in the right place!!: schtasks /create /sc minute /mo 30 /tn "Services Check" /tr C:\ServicesBAT\Services.vbs Click enter. Then EXIT the DOS window. That's it [IMG]http://www.argus-tv.com/forum/images/smilies/icon_e_smile.gif[/IMG] If you want to check to see if the task is running (and has run) start the Task Scheduler (type task into the search area in Windows 7)and click on the "Task Scheduler Library". You will see the task there; when it was last run and when it is going to run next. This task only takes a couple of seconds to run if everything is fine (i.e. both Services are running) and even if it has to start both Services it only runs for as long as it takes them to start and adds virtually nothing to the CPU overhead. Dave [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Autorun Script to check/start Argus and MPTVServer Services
Contact us
RSS
Top
Bottom