The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help Setting a cPanel Cron Job

Discussion in 'General Discussion' started by wczone, Dec 16, 2007.

  1. wczone

    wczone Registered

    Joined:
    Dec 16, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi Folks:

    I've been using FeedWordPress for a couple of weeks now... its a very nice RSS agregator.

    The author has a way he says that it can be updated using a cron tab. Here is the code he gives:
    */15 * * * * curl --silent http://www.zyx.com/blog/?update_feedwordpress=1

    I have tried for a couple of hours different variations and cant get it to work. My blog is at (example): http://www.domain.com/blog/

    My server uses cPanel 11. The main error I get is: "No such file or directory"

    I have tried it with and without parenthesis, without curl, with index.php before the "?update_feedwordpress=1" etc.

    If I can't get this to work, what would I use to have the cron run the home page of the site (the second method this plugin uses to get updates is when someone visits the home page it will cause an update to be triggered).

    I am using cPanel 11 x3. I also am running a VPS so I have full access to WHM if needed.


    Thanks for any help.

    Matthew
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The first step I'd recommend in troubleshooting this is to visit http://www.zyx.com/blog/?update_feedwordpress=1 in your web browser, just to ensure it is properly functioning, while it isn't directly related to the error, I usually do this with my own cron scripts.

    It is possible that curl may not be installed on the server. In this case, I use lynx instead. I just have lynx request the page as a means to trigger the cron job (exactly what was being done with curl, but this is an alternate means by which to do this).

    If you aren't familiar with lynx and want to know what parameters it takes and do not have shell access, you can do an internet search for man lynx for assistance.
     
Loading...

Share This Page