diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-08-09 05:58:50 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-08-09 05:58:50 (GMT) |
commit | 9152c2dfbc73080d6c9aba33ac27df9cdcf86f41 (patch) | |
tree | b79017997159b240d4c3c072d8ae6b000d68c7f0 /abs/core-testing/LinHES-system/myth_mtc.sh | |
parent | 6df792244a366dca60e2cccb12efae45d60a0de0 (diff) | |
download | linhes_pkgbuild-9152c2dfbc73080d6c9aba33ac27df9cdcf86f41.zip linhes_pkgbuild-9152c2dfbc73080d6c9aba33ac27df9cdcf86f41.tar.gz linhes_pkgbuild-9152c2dfbc73080d6c9aba33ac27df9cdcf86f41.tar.bz2 |
LinHES-system:updated myth_mtc.sh to use log in /var/log/mythtv. Added logrotation configuration file.
Diffstat (limited to 'abs/core-testing/LinHES-system/myth_mtc.sh')
-rwxr-xr-x | abs/core-testing/LinHES-system/myth_mtc.sh | 11 |
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 - - |