Results 1 to 10 of 11
I'm using xmltv grabber, mc2xml that mythtv doesn't support but they say to make a script and add it to crontab.
update.sh
Code:
#!/bin/sh
cd ~/mc2xml
if ~/mc2xml/mc2xml ; then
...
- 07-19-2009 #1
I don't think cron is running. ~mythbuntu 9.04
I'm using xmltv grabber, mc2xml that mythtv doesn't support but they say to make a script and add it to crontab.
update.sh
The script works fine and all, but...Code:#!/bin/sh cd ~/mc2xml if ~/mc2xml/mc2xml ; then mythfilldatabase --refresh-all --file 1 ./xmltv.xml fi
/etc/crontab
cron is being a *****!Code:10 4 * * * pvr /home/pvr/mc2xml/update.sh
It's been about 7 days and my guide data hasn't been up to date.
I check /var/log but there's not any type of cron log at all.
I don't know what the problem is.
- 07-20-2009 #2
Is the cron starting script in the rc.3 (I guess I got the number right, not sure however, working on Win right now) directory there?
- 07-21-2009 #3
there's S89cron in rc3.d.
I don't see anything else.
in /etc/
I have
cron.d
cron.daily
cron.hourly
cron.weekly
cron.monthly
crontab
My guide data still isn't updating using a cron job, even tho the update.sh script works flawlessly if run manually.
- 07-22-2009 #4
what if you remove the command from the file and add it to your personal file which you cn edit through:
(You can should leave the user option away, as it is already configured, since it will be put in your personal file)Code:crontab -e
This command also updates cron when you edit the file.
- 07-24-2009 #5
so I did what you said and it still doesn't update.
I don't think cron is running at all.
- 07-24-2009 #6
You do have set the script to executable?
- 07-25-2009 #7
That's a good question, sadly I don't know how to check from the command line.
- 07-25-2009 #8
For listing:
ls -l
See man ls for more.
- 07-25-2009 #9
if it is executable the rights code should contain an X in the first set of righs (since your account will execute the code). If the x is missing in the other 2 sets of rights, it isn't really much of a problem.
To make a file executable do
You have to own the file or be root to do this. Please don't do this using root if you can do it through the owning account.Code:chmod +x [filename]
- 07-30-2009 #10
So I change the permissions on the update.sh file, again.. even though it was set for 777 and reconfigured mc2xml and fix the line for executing the script, and now it seems to be working.
Thanks for helping me.
~MP


Reply With Quote