See this post
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
#!/bin/sh
#---> Script for loading the iceguide to the topfield
#---> Called daily by cron
#---> Run on NSLU2
#---> Set file locations
RUN_LOCATION="/root/scripts"
GUIDE_LOCATION=$RUN_LOCATION"/iceguide/ICE"
#---> cd to the location where the fetch routine will run
cd $RUN_LOCATION
#---> Delete existing guides
rm -f $GUIDE_LOCATION/*_EPG_CACHE
#---> Download guides from the Ice Guide server
$RUN_LOCATION/get_guide_data.py -u <ICE user id> -p <ICE password>
#---> Upload the downloaded program files to the toppy
for i in $GUIDE_LOCATION/*_EPG_CACHE; do echo Uploading $i ; puppy -c put $i ICE\\$i ; done
#---> Change back to the home directory
cd ~
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
#-------------- Update time every day -----------#
00 13 * * * root /usr/bin/ntpdate -s ntp.syd.connect.com.au
#------------- Upload the fresh guides to the toppy -----------#
30 14 * * * root /root/scripts/load_guides.sh