myth_mtc.sh

admin, 07/17/2009 04:11 am

Download (224 Bytes)

 
1
#!/bin/bash
2
. /etc/profile
3
logFile='/var/log/mythtv/myth_mtc.log'
4
date=`date +%Y-%m-%d`
5
6
myth_mtc.py > $logFile 2>&1
7
if [ $? = 0 ]
8
then
9
    echo "Finished $date" >> $logFile
10
else
11
    echo "Time Exceede $date" >> $logFile
12
fi