Cpanel cron job to run a php script

Discussion in 'PHP' started by afridy, Aug 15, 2012.

  1. #1
    Hai folks

    i have scheduled to run a php script to run 3pm daily, but not executing at the right time.

    * 15 * * * php -q /home/xxxco/public_html/visa/process.php - once a day

    what could be the reason?

    *above 15 shows the hour column.

    pls advise!

    edited :

    if i select a predefine interval then it works : ex: every minute, every 5 minute.
     
    Last edited: Aug 15, 2012
    afridy, Aug 15, 2012 IP
  2. afridy

    afridy Well-Known Member

    Messages:
    810
    Likes Received:
    116
    Best Answers:
    0
    Trophy Points:
    135
    #2
    any body pls?
     
    afridy, Aug 15, 2012 IP
  3. SitesTen

    SitesTen Active Member

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    75
    #3
    I believe this should be correct way:
    0 15 * * * php -q /home/xxxco/public_html/visa/process.php 
    Code (markup):
     
    SitesTen, Aug 16, 2012 IP
  4. afridy

    afridy Well-Known Member

    Messages:
    810
    Likes Received:
    116
    Best Answers:
    0
    Trophy Points:
    135
    #4
    yes it seems the 0 is necessary.
    Thanks.
    i have edited and ill feedback here of the out put :D

    0 15 * * * php -q /home/xxxco/public_html/visa/process.php
     
    Last edited: Aug 16, 2012
    afridy, Aug 16, 2012 IP
  5. afridy

    afridy Well-Known Member

    Messages:
    810
    Likes Received:
    116
    Best Answers:
    0
    Trophy Points:
    135
    #5
    The chrone job works charm!!! thank you Sites ten for the advise!!
     
    afridy, Aug 16, 2012 IP
  6. SitesTen

    SitesTen Active Member

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    75
    #6
    Glad I was able to help! Good luck!
     
    SitesTen, Aug 16, 2012 IP