Wednesday, March 17, 2010

Running mythfilldatabase as cronjob

Made a script calling grab_dk_dr and mythfilldatabase sequentially. Running that as cronjob of user mythtv.

For some reason the mythfrontend's autorun of mythfilldatabase didn't work.

Note: I had to configure mythfilldatabase to use tuner 2 after changing to anysee tuner.


#!/bin/sh
nice -n 15 tv_grab_dk_dr --days 14 --out /home/mythtv/ud.xml 2>/var/log/mythtv/tv_grab_dk_dr_stderr.log
nice -n 15 mythfilldatabase --update --file 2 /home/mythtv/ud.xml > /var/log/mythtv/mythfilldatabase.log

No comments:

Post a Comment