[mythtv-users] Querrying Recording Status

Lance Tost ltost at pobox.com
Fri Feb 27 13:03:39 EST 2004


One solution would be to look at the timestamp on the most recently 
modified file in your recordings directory.  If it's older than one 
minute, it should be fairly safe to reboot I would think.

On Fri, 27 Feb 2004, Michael Starks wrote:

> Date: Fri, 27 Feb 2004 12:33:31 -0500
> From: Michael Starks <mythtv at michaelstarks.com>
> Reply-To: Discussion about mythtv <mythtv-users at mythtv.org>
> To: mythtv-users at mythtv.org
> Subject: [mythtv-users] Querrying Recording Status
> 
> I have found that Myth/IVTV benefit from a frequent reboot.  Otherwise, 
> weird things begin to happen.  This is more of an ivtv problem but it 
> seems clear that a nightly reboot scheduled via cron would help.  So, 
> the question is.. how can I query Myth to see if it is currently 
> recording something?  I know MythWeb does it so it is possible. 
> Finally, does it return an exit code that I can act on in a shell script 
> or maybe I can just look for a string, such that if it is not recording 
> then reboot but if it is, don't.
> 
> 

-- 
Lance Tost <ltost at pobox.com>



More information about the mythtv-users mailing list