466
Users / Re: Question about Mythtv
« on: May 12, 2009, 07:37:22 pm »
I think the best you are going to be able to do is set it as a bookmark in computing apps.
Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function WaitUntilMythTvInitialRunXMinutesOld {
STARTTIME=`date +%s`
if [ -r $FILLDBINITRUN -a -s $FILLDBINITRUN ] ; then
STARTTIME=$(cat $FILLDBINITRUN)
fi
This checks for a lockfile containing a timestamp left by the initial db fill script i assume, but what i dont understand is why it doesnt simply return control to the fill database script and let it continue if the lockfile isnt there. So I added a couple additional lines to do just that:function WaitUntilMythTvInitialRunXMinutesOld {
STARTTIME=`date +%s`
if [ -r $FILLDBINITRUN -a -s $FILLDBINITRUN ] ; then
STARTTIME=$(cat $FILLDBINITRUN)
else
return
fi
So far it seems to do as it should, but I also have not given it much testing. I dont know what will happen if the initial db fill is still running.