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 Correct Command Problem

Discussion in 'General Discussion' started by c a g a t a y, Oct 12, 2011.

  1. c a g a t a y

    c a g a t a y Registered

    Joined:
    Oct 12, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi all
    I wanna try to run a auto e-mail member for birthday,
    I have a mode manuelly installed and it is running seamlessly
    When I put below URL to the browser and hit to ENTER it runs and send e-mail to the members (controlled)

    www.mysite.com/forum/index.php?action=birthday

    this URL running;

    What I want to do is that;
    I wanna run a CronJob daily at 08:00 which launchs this URL

    There is no problem with scheduling
    But I tear my hair what is the correct command?

    wget -q http://www.mysite.com/index.php?action=birthday
    php http://www.mysite.com/index.php?action=birthday
    lynx
    http://www.mysite.com/index.php?action=birthday

    Any idea?
    Regards
     
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    I guess it will be like that:

    PHP:
    0 8 * * * php -/home/USERNAME/public_html/forum/index.php?action=birthday
    The only thing that worries me about if it will work or not is "action=birthday" but let's keep out fingers crossed :rolleyes:
     
  3. c a g a t a y

    c a g a t a y Registered

    Joined:
    Oct 12, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    here is my Cron command

    /http://img268.imageshack.us/img268/9774/cron.jpg

    "No input file specified." error returned via mail :mad:

    By the way;
    My URL "http://www.mysite.com/forum/index.php?action=dogumgunu" works and sends email to the members (who have birthday)
    It works seamlessly...It runs a script
     
  4. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Could you try it without "action=*" ? could be the problem I'm really not sure.
     
    #4 ModServ, Oct 12, 2011
    Last edited: Oct 12, 2011
Loading...

Share This Page