summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/myth_mtc.sh
blob: 7899daa8607dfe65065ef2ad9c1b1bafa1064bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
MYTH_RUN_STATUS=1
. /etc/profile

date=`date +%Y-%m-%d`
logFile="/var/log/$date/myth_mtc.log"

MYTHCONFDIR=/usr/share/mythtv myth_mtc.py > $logFile 2>&1
if [ $? = 0 ]
then
    echo "Finished $date" >> $logFile
else
    echo "Time Exceede $date" >> $logFile
fi