SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-10-2007, 09:05 AM
TBacker's Avatar
TBacker TBacker is offline
Sage Advanced User
 
Join Date: Nov 2006
Location: North Syracuse, NY
Posts: 124
Close Sage from a batch file?

Hi all!

Every overnight I run a bunch of maintenance automatically.

At 3AM, a batch file runs to shutdown Sage. I do this because it runs FSE and external programs generally hose FSE until restart. I also do this so backup routines and defrag don fight Sage.

After Sage shuts down, the AV definitions update, Sage settings are backed up via another batch file, defrag runs, and finally the system gets rebooted at 5AM.

Right now, I use the PSKill utility to close Sage prior to maintenance. The bad part of that is I don't think PSKill is nice to the apps it closes, i.e. it doesn't allow them to shut down on their own terms. This could corrupt the Sage DB and properties files.

Is there a better way of shutting down Sage gracefully from a batch file?

I'm thinking of using a GUI scripting tool that can record and play back mouse clicks to record the keys and clicks to shut down Sage, but if the button positions change (different skins), I'll have to redo the script.

I'm running the latest Sage with SageMC 16x9 on a dedicated HTPC (no server).

Last edited by TBacker; 06-10-2007 at 09:12 AM.
Reply With Quote
  #2  
Old 06-10-2007, 12:04 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
See this thread:

http://forums.sagetv.com/forums/showthread.php?t=21148
__________________
-- Greg
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Log file for Sage 6.1 freezing/crashing popechild SageTV Software 18 12-31-2007 06:30 PM
Umm - Why is Sage 6.1.8 looking for the wiz file in the beta dir? tawpgk SageTV Software 3 04-24-2007 12:27 AM
Sage DVD Player vs. Zoom/TT Players Jesse SageTV Software 47 02-17-2006 02:34 PM
How-To: Un-archive a Sage Recording... nielm SageTV Customizations 4 05-04-2005 02:34 PM


All times are GMT -6. The time now is 02:59 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.