Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2004
    Posts
    1,303

    Question how to perform a crone job

    Hi,

    I have never used this in the control panel. I would like to make a schedule to run a php file every few hours, says 5hours.

    What are the commands to execute the file?

    Let the file be test.php located in a directory called /schedule

    Thank you!

  2. #2
    what control panel are you using, most have an area to enter the details but they ussually differ from each other slightly

  3. #3
    Join Date
    Mar 2004
    Posts
    1,303
    I think it's called
    "Cpanel Version 9.1.0-STABLE 93"

  4. #4
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,721
    Go into Cron Jobs > Advanced

    Under the option to add an email address the first row of boxes (minute, hour, day, month etc) are for how often you want the cron to run, to run every 5 hours set them up like so:
    [*] [*/5][*][*][*]

    So the */5 is in the "hours" field (dont add the brackets, that's just to indicate each box), then in the command box to the side:

    GET http://yourdomain.com/schedule/test.php > /dev/null
    Hyperconfused (™)

  5. #5
    Join Date
    Mar 2004
    Posts
    1,303
    Thank you Loon!
    It works now

  6. #6
    Join Date
    Feb 2004
    Posts
    772
    Hi,

    I think i m late but in future you can have a look into this following CPANEL ONLINE DOCUMENTATION regarding setting time for your files execution ( Cron Job Settings ).

    http://www.vermontwebhost.com/cpanel-help/cronJobs.htm

    It may resolve the problem.

    Regards,

    Bright

  7. #7
    Join Date
    Mar 2004
    Posts
    1,303
    It's never too late. I've learned more from your link too
    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •