Need help with crons????

Discussion in 'Site & Server Administration' started by farooqaaa, Aug 30, 2006.

Thread Status:
Not open for further replies.
  1. #1
    Hey all,

    I set cron jobs for my website, but its not working :(. see the screenshot in attachement. It doesnt redirects me to the page after one minute .

    Can someone tell me what is the problem :confused::confused::confused:

    Waiting for your quick responses

    Thanks
     
    farooqaaa, Aug 30, 2006 IP
  2. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #2
    Sorry, I don't see any attachments :(
     
    JC007, Aug 30, 2006 IP
  3. farooqaaa

    farooqaaa Well-Known Member

    Messages:
    2,330
    Likes Received:
    149
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Ooops! i forgoted to attache :(. Ok here it is:-
    [​IMG]
     
    farooqaaa, Aug 30, 2006 IP
  4. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #4
    I don't see any problems here. So, only the 1 minutes does not work? or all the cronjob?
     
    JC007, Aug 30, 2006 IP
  5. farooqaaa

    farooqaaa Well-Known Member

    Messages:
    2,330
    Likes Received:
    149
    Best Answers:
    0
    Trophy Points:
    180
    #5
    Yeah, all the cronjob is not working. Anything is right, but dont know why its not working. Is it problem with my server?
     
    farooqaaa, Aug 30, 2006 IP
  6. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #6
    After changing it.. have you loaded into memory. I am more familiar with the Unix system. In which you can run.
    > crontab -l
    This is to list all the cron processes that is loaded in memory. Maybe you can give a try and check if your newer changes are in memory.
     
    JC007, Aug 30, 2006 IP
  7. wheel

    wheel Peon

    Messages:
    477
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    What happens when you do those cron jobs from the command line? i.e login as the user who's cron is having the problems, and cut and paste the cron line exactly as it's listed. Does it work? My first suspicion is the GET command or the cron job itself.

    Another thing to try just for the heck of it is to put that GET command into a shell script file and then try running the file (I'm reaching on that, but I'd try it just to see what happens).
     
    wheel, Aug 30, 2006 IP
  8. farooqaaa

    farooqaaa Well-Known Member

    Messages:
    2,330
    Likes Received:
    149
    Best Answers:
    0
    Trophy Points:
    180
    #8
    Loaded into memory? Where is the memory?

    I hav tried redirecting to my website, but it still doesnt worked. I tried these crons on other server, but was still not working.
     
    farooqaaa, Aug 30, 2006 IP
  9. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #9
    When you run the command
    > crontab -l

    You will be able to see a list of jobs in the cron.
     
    JC007, Aug 30, 2006 IP
  10. farooqaaa

    farooqaaa Well-Known Member

    Messages:
    2,330
    Likes Received:
    149
    Best Answers:
    0
    Trophy Points:
    180
    #10
    How to run > crontab -l ?
     
    farooqaaa, Aug 30, 2006 IP
  11. petronel

    petronel Peon

    Messages:
    113
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    the problem is that GET
    try to replace it with "wget" or "lynx" if server suport it.

    or if the scripts are on same server something like "php /path/to/scrip.php"
     
    petronel, Aug 31, 2006 IP
  12. farooqaaa

    farooqaaa Well-Known Member

    Messages:
    2,330
    Likes Received:
    149
    Best Answers:
    0
    Trophy Points:
    180
    #12
    I am trying it :). If it doesnt worked, i shall post here.

    Thanks for the help in advace :)
     
    farooqaaa, Aug 31, 2006 IP
  13. void

    void Peon

    Messages:
    119
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Aside from the wget problems etc, if the 2nd line is meant to excecute every minute, it won't - it will execute at 1 minute past each hour. It needs to be changed to *
     
    void, Aug 31, 2006 IP
  14. JC007

    JC007 Active Member

    Messages:
    1,066
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #14
    Just type "crontab -l" at your prompt. Hope it works! :cool:
     
    JC007, Aug 31, 2006 IP
  15. sreyas

    sreyas Well-Known Member

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #15
    Could you please update us the information on cron tab log. /var/log/cron

    we may be able to track down the issue from thre.
     
    sreyas, Sep 1, 2006 IP
Thread Status:
Not open for further replies.