summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/myth_mtc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/LinHES-system/myth_mtc.sh')
-rwxr-xr-xabs/core-testing/LinHES-system/myth_mtc.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/abs/core-testing/LinHES-system/myth_mtc.sh b/abs/core-testing/LinHES-system/myth_mtc.sh
index 89ed37d..487513b 100755
--- a/abs/core-testing/LinHES-system/myth_mtc.sh
+++ b/abs/core-testing/LinHES-system/myth_mtc.sh
@@ -1,13 +1,12 @@
#!/bin/bash
. /etc/profile
+logFile='/var/log/mythtv/myth_mtc.log'
date=`date +%Y-%m-%d`
-mkdir /var/log/$date
-myth_mtc.py > /var/log/$date/myth_mtc.log
+
+myth_mtc.py > $logFile 2>&1
if [ $? = 0 ]
then
- echo "Finished" >> /var/log/$date/myth_mtc.log
+ echo "Finished $date" >> $logFile
else
- echo "Time Exceede" >> /var/log/$date/myth_mtc.log
+ echo "Time Exceede $date" >> $logFile
fi
-
-