Cron help

Discussion in 'Site & Server Administration' started by esiason14, Sep 16, 2007.

  1. #1
    Hi,
    I'm trying to setup a cronjob and can't seem to get it working.

    I want to run it every Sunday from 1PM - 11PM, every 15 minutes

    This is currently what I have. Any help would be appreciated. (note: Lynx does work on my server)
    */15 13-23 * * 0 lynx -dump http://www.mydomain.com/script.php >> /var/log/mylog.log
    
    Code (markup):

     
    esiason14, Sep 16, 2007 IP
  2. readme

    readme Banned

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your command is OK dude. You may try providing the the full path of lynx like this :
    Although, just want to know why are you using lynx? wget -q should work the same.
     
    readme, Sep 16, 2007 IP
  3. esiason14

    esiason14 Peon

    Messages:
    272
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks. Actually I just restarted my VPS and it works :)
     
    esiason14, Sep 16, 2007 IP
  4. readme

    readme Banned

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That means your cron was down for some reason :)

    If thus happens again, do this from shell:

    This should restart the crontab and should fix the hang :)
     
    readme, Sep 16, 2007 IP