Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

HELP! How to make a cron job in Cpanel?

Discussion in 'General Discussion' started by EarthIndex, Oct 7, 2004.

  1. EarthIndex

    EarthIndex Registered

    Joined:
    Oct 7, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    I need to make a cron job using CPanel to run a PHP file that has to include a username and password. Does anyone know how to do this?
     
  2. Sheldon

    Sheldon Well-Known Member

    Joined:
    Jun 7, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Canada
    type

    crontab -e

    at the command line

    or simply use your cpanel to add the log file using the simple format.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    168
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    I'm not certain, but I think the question is, how do I include variables in the cron job?

    I remember I had to figure that out a while back but ended up just putting the variables in the script.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice