summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/mythvodka/hulu_grabber.sh
blob: 4840dc0023b451245bb44f3cef84321599417fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
/usr/local/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