What command line for this cron job? (Help!)

Discussion in 'Programming' started by Citizen, Feb 7, 2006.

  1. #1
    I'm using cpanel's cron job section and I need to have it run a file once every hour.

    Assuming the location of my file is /home/user/public_html/ads/maintenance/maintenance.php, what do I need to input for my command line?

    [​IMG]
     
    Citizen, Feb 7, 2006 IP
  2. Citizen

    Citizen Active Member

    Messages:
    399
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    58
    #2
    If there arent any members here with experience with Cron jobs, could someone direct me to someone/somewhere that does?
     
    Citizen, Feb 8, 2006 IP
  3. averagejoe

    averagejoe Peon

    Messages:
    22
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Assuming the php cli executable is located in /usr/local/bin/

     
    /usr/local/bin/php /home/user/public_html/ads/maintenance/maintenance.php
    
    Code (markup):
     
    averagejoe, Feb 9, 2006 IP
  4. vishalrao

    vishalrao Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The command would be the path to your file, that is:
    /home/user/public_html/ads/maintenance/maintenance.php
     
    vishalrao, Feb 11, 2006 IP