summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mythvodka/hulu_grabber.sh
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-02-05 06:45:34 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-02-05 06:45:34 (GMT)
commit1f780b78f0c1f12457a28e7f166c7a9875af33ad (patch)
tree29d14d3a7f4787de850f049497bbade87e563e12 /abs/extra-testing/mythvodka/hulu_grabber.sh
parent4375c7a63a2a702620f8c755843db4c41b1878ce (diff)
downloadlinhes_pkgbuild-1f780b78f0c1f12457a28e7f166c7a9875af33ad.zip
linhes_pkgbuild-1f780b78f0c1f12457a28e7f166c7a9875af33ad.tar.gz
linhes_pkgbuild-1f780b78f0c1f12457a28e7f166c7a9875af33ad.tar.bz2
Adds MythVodka to LinHES.
Diffstat (limited to 'abs/extra-testing/mythvodka/hulu_grabber.sh')
-rwxr-xr-xabs/extra-testing/mythvodka/hulu_grabber.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/extra-testing/mythvodka/hulu_grabber.sh b/abs/extra-testing/mythvodka/hulu_grabber.sh
new file mode 100755
index 0000000..d285379
--- /dev/null
+++ b/abs/extra-testing/mythvodka/hulu_grabber.sh
@@ -0,0 +1,16 @@
+#! /bin/bash
+log=/var/log/mythtv/hulu_grabber.log
+out=/var/tmp/huludata.xml
+rm -f $log
+echo "Start on `date`" >>$log 2>&1
+time /usr/bin/gethulu.pl $out.new >>$log 2>&1
+stat=$?
+if [ $stat -ne 0 ]; then
+ echo "Bad status $stat from gethulu.pl" >>$log 2>&1
+ exit 1
+fi
+rm -f $out.old
+mv $out $out.old
+mv $out.new $out
+echo "Done on `date`" >>$log 2>&1
+ls -lh $out >>$log 2>&1