[mythtv] RE: [mythtv-users] tv_grab_na_dd backport datato.14system?

Matthew Mead mkmead at hoodnet.net
Sat May 22 20:17:27 EDT 2004


Ok that clears some stuff up..

let me bounce this back (read below)

----- Original Message ----- 
From: "Jim Bauer" <jfbauer at comcast.net>
To: <mythtv-users at mythtv.org>
Sent: Saturday, May 22, 2004 7:47 PM
Subject: Re: [mythtv] RE: [mythtv-users] tv_grab_na_dd backport
datato.14system?


> On Saturday 22 May 2004 18:30, Matthew Mead wrote:
> > This works fine..
> >
> > I edit the cron job by doing a:
> >
> > $ crontab -e
> >
> > then I remove the old commands and put the new script in place..
> >
> > but when I got to save it it comes back with the follow error.
> >
> > "tmp/crontab.3397":17L bad day-of-month
> > errors in crontab file, can't install.
> > Do you want to retry the same edit?
>
> Did you put script in the crontab file or an entry to run the script?  It
> should be the latter.

OK, this makes sense. The Problem is what should the script entry be?
because the one I thought I was supposed to use doesn't work (see error
message above).  This was what I had entered into my crontab -e

#!/bin/sh
    #/usr/local/bin/mythfilldatabasecron_dd

    # temporary filename
    dirname='/tmp'
    filename="tv-${RANDOM}${RANDOM}"
    xml_file=${dirname}/${filename}.xml

    # From step 8
    sourceid=1

    # replace all data
    offset=-1

    # How many days worth of guide data to download
    numdays=10

    /usr/bin/tv_grab_na_dd --output ${xml_file} --days ${numdays} \
                           --old-chan-id && \
    /usr/bin/mythfilldatabase --file ${sourceid} ${offset} ${xml_file}

    # Remove the temporary file
    rm ${xml_file}

Is that the wrong script? Whats the right one I should be using?

>
> >
> > So for some reason it doesn't like my cron job.
> >
> > btw I looked in the cron.daily directory and found no
mythfilldatabase.cron
> > file.
>
> It might be named something else.  Look for any file in that directory
that
> runs mythfilldatabase.  That is the one you want to change/replace

OK, I looked around through the directory at all the files.. but none had a
script in it like the one below:

>
> > should I just create one in vi and paste this script there instead?
>
> Since the files in cron.daily are run as root and you probably need to run
the
> commands as mythtv (or whatever).  You should probably just have a script
> in cron.daily like
>
> #!/bin/sh
> ##su mythtv -c "mythfilldatabase --quiet"
> su mythtv -c "/usr/local/bin/mythfilldatabasecron_dd"
>
> Then put that script previously posted in
> /usr/local/bin/mythfilldatabasecron_dd.  Make sure both are executable.

Whats the command to make them executable? I'm sort of new with linux but I
think I remember its chmod with some sort of flag.

Is that correct?


> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>




More information about the mythtv-users mailing list