MSFN Forum: Crontab - Syntax - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Crontab - Syntax Running PHP scripts via Crontab Rate Topic: -----

#1 User is offline   TomcaT 

  • Member
  • PipPip
  • Group: Members
  • Posts: 208
  • Joined: 30-December 03

Posted 18 June 2007 - 09:22 AM

Hi all, not posted here in a while!!! :hello:

I have setup a Crontab in apache:

15 * * * * path/to/my/php/script

Now I am not sure but does this mean that my crontab will run my script every 15 minutes? or does it mean it will run the script once an hour on the 15th minute?

I have googled a lot this afternoon and could not really find anything that clarified this.

Any help appreciated.


#2 User is offline   tain 

  • Cyber Ops
  • Group: Super Moderator
  • Posts: 3,558
  • Joined: 24-September 05
  • OS:none specified
  • Country: Country Flag

Posted 18 June 2007 - 02:25 PM

That will run every hour at the 15th minute. For every 15 mins, use
15,30,45,59 * * * * command


More here: http://en.wikipedia.org/wiki/Crontab

# Use the hash sign to prefix a comment
# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |  +---- day of week (0 - 7) (Sunday=0 or 7)
# |  |  |  |  |
# *  *  *  *  *  command to be executed


#3 User is offline   TomcaT 

  • Member
  • PipPip
  • Group: Members
  • Posts: 208
  • Joined: 30-December 03

Posted 18 June 2007 - 05:05 PM

Thank you TaIN for the quick response, I will try this out tommorrow!!! :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy