[mythtv-users] of crontab, tv_grab, and mythfilldatabase
Robert Tsai
rtsai1111 at comcast.net
Tue Nov 22 09:08:44 EST 2005
> ####################
> {
> rm -f /media/dvb.xml
> date
> /root/env.sh
> perl /usr/bin/tv_grab_uk_rt --config-file /root/.mythtv/RadioTimes.xmltv --quiet > /media/dvb.xml
> /usr/bin/mythfilldatabase --file 2 -1 /media/dvb.xml
>
> } >> /root/log.log 2>&1
This script needs to say:
. /root/env.sh (bash)
or
source /root/env.sh (*csh)
Otherwise, the environment variables presumably set in the "env.sh"
script won't be picked up.
To confirm this, you can do a:
...
/root/env.sh
env | sort
perl /usr/bin/tv_grab_...
and compare that output with
...
. /root/env.sh
env | sort
perl /usr/bin/tv_grab_...
--Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20051122/b638ef5b/attachment.pgp
More information about the mythtv-users
mailing list