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.

Cronjob not working

Discussion in 'General Discussion' started by strauberry, May 17, 2003.

  1. strauberry

    strauberry Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    first of all I'd like to say that I searched the forum :)

    One of my clients setup a cronjob but it doesn't work:

    * * * * * /home/user/public_html/test.php

    Why isn't it executed?? Do I have to refresh a table like "fixquotas"?

    THANK YOU!!
    strauberry
     
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18

    You sure you searched the forum? :)

    I don't see how what you have there is going to work...you did not specify which program should parse the php file.

    You could use wget or lynx for example.

    Try this:

    * * * * * /usr/bin/wget --delete- after /home/user/public_html/test.php
     
  3. strauberry

    strauberry Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    yeah I found that, but it didn't help :)

    The script sends an email, so which program must I use??

    Thank you!
    strauberry
     
  4. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    It should work.
    Just log on with SSH and test it with wget or lynx and see if you get any error messages.

    Once you have it working you can create a cronjob for it.
     
Loading...

Share This Page