[mythtv-users] Any way to tell which tuner card might be bad?
James Pifer
jep at obrien-pifer.com
Fri Feb 12 16:34:00 UTC 2010
> I wrote a simple script to dig through my backend log to help me with
> this same problem. It emails me daily with a list of recordings and
> which tuner they were recorded on. Of course, since writing it I
> haven't had an issue ;-)
>
> If you like it feel free to use it. Change email specifics as indicated
> and home directories as well.
>
> #!/bin/bash
> result=`grep "Started recording" /var/log/mythtv/mythbackend.log | cut
> -d" " -f1,2,5-50`
> #
> echo -n "Date:" > /home/john/recording.report
> /bin/date >> /home/john/recording.report
> echo "From:mythbackend at mythtv" >> /home/john/recording.report
> echo "To:YOUR EMAIL ADDRESS" >> /home/john/recording.report
> echo "Subject:Mythtv recordings" >> /home/john/recording.report
> echo >> /home/john/recording.report
> echo "$result" >> /home/john/recording.report
> (echo "HELO YOURMAILSERVER.COM"; sleep 2; echo "MAIL From:YOUR EMAIL
> ADDRESS"; sleep 2; echo "RCPT To:YOUR EMAIL ADDRESS"; sleep 2; echo
> "DATA"; sleep 2; /bin/cat /home/john/recording.report; sleep 2; echo
> "."; sleep 2; echo "QUIT"; sleep 2; ) | telnet server 25
>
Thanks for the script. I'm going to try it.
James
More information about the mythtv-users
mailing list