Eubolist's Blog

about IT, Linux, the web and much more

Archive for the ‘Scripting’ Category

MythNetTV-Status Page

leave a comment »

I wrote a little script the other day so I could sporadically check on the progress and last downloaded shows of mythnettv on my mythtv-box.  The package “mythnettv-gui” sets up a nice cronjob that creates a log file, which my script uses to deliver the information. You can download the script here.

All you have to do is put the script in place and tell your system with crontab -e to execute it every now and then:

# m h  dom mon dow   command

* * * * * /usr/local/bin/

For the lazy reader here is a complete set of commands, just copy-paste in a terminal to download and set everything up:

wget && mv && unzip && sudo mv /usr/local/bin && sudo cp var/www/mythnettv-status /var/www && rm -Rf var && crontab -l > cron.tmp && echo “* * * * * /usr/local/bin/” >> cron.tmp && crontab cron.tmp && rm cron.tmp

Written by eubolist

2010/12/24 at 12:36