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.

CronJobs

Discussion in 'General Discussion' started by Xikeon, Sep 28, 2006.

  1. Xikeon

    Xikeon Registered

    Joined:
    Sep 28, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    my host has cPanel and I set up a cronjob with a mysql connection in the file.

    Now, I said to sent the status per job to me email, but I get this:
    The ***** is my password (is correct for sure)...

    Does anyone know how to fix it?

    Thanks.
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    It looks like you're specifying the cron job task by merely entering the path to the PHP script.

    When doing so, the script will be executed in the same way as if it were executed from the command line and in order for that to work, you'd need to add a shebang line in your script - search the forums for info on how to do this.
     
  3. Xikeon

    Xikeon Registered

    Joined:
    Sep 28, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Well,
    I now have this command:
    Now nothing happens...

    EDIT!!!!
    Thanks, it works now :D
     
    #3 Xikeon, Sep 29, 2006
    Last edited: Sep 29, 2006
Loading...

Share This Page