Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128

    Question 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
    Code:
    #!/bin/sh
    cd ~/mc2xml
    if ~/mc2xml/mc2xml ; then
      mythfilldatabase --refresh-all --file 1 ./xmltv.xml
    fi
    The script works fine and all, but...

    /etc/crontab
    Code:
    10 4 * * * pvr /home/pvr/mc2xml/update.sh
    cron is being a *****!

    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.

  2. #2
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    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?

  3. #3
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128
    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.

  4. #4
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    what if you remove the command from the file and add it to your personal file which you cn edit through:
    Code:
    crontab -e
    (You can should leave the user option away, as it is already configured, since it will be put in your personal file)

    This command also updates cron when you edit the file.

  5. #5
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128
    so I did what you said and it still doesn't update.

    I don't think cron is running at all.

  6. #6
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    You do have set the script to executable?

  7. #7
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128
    That's a good question, sadly I don't know how to check from the command line.

  8. #8
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    For listing:

    ls -l

    See man ls for more.

  9. #9
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    522
    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
    Code:
    chmod +x [filename]
    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.

  10. #10
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    128
    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

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...