[mythtv-users] of crontab, tv_grab, and mythfilldatabase
Paul Graydon
graydpau at hhc.ac.uk
Tue Nov 22 10:25:16 EST 2005
*hammers head against brick wall*
Thank you very much, you were right.
Ahh well, you learn something new everyday, for me its that "." is a very useful character indeed.
Now to get this working under the day to day users account, what should hopefully be an easy task.
On 22 Nov 2005 at 10:08, Robert Tsai wrote:
> On Tue, Nov 22, 2005 at 02:25:09PM -0000, Paul Graydon wrote:
> > Its working fine, inside env.sh I have an echo statement, which
> > appears in the log file.
>
> You have to put the echo statements outside of env.sh to see if what
> you do inside of env.sh has any effects on the environment in the
> calling script (it doesn't).
>
> > On 22 Nov 2005 at 9:08, Robert Tsai wrote:
> >
> > > > ####################
> > > > {
> > > > 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
> > >
> >
> >
> > -----
> > Paul Graydon
> > Network Technician
> > Haywards Heath College
> > http://www.hhc.ac.uk (01444) 456281
> > "Joy is not in things; it is in us." Richard Wagner
> >
>
> --Rob
>
-----
Paul Graydon
Network Technician
Haywards Heath College
http://www.hhc.ac.uk (01444) 456281
"Joy is not in things; it is in us." Richard Wagner
More information about the mythtv-users
mailing list