blob: d2853793e2a334ef0083c9e73ad3b38ad8e6bb14 (
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
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
|