Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Crontab - Syntax

- - - - -

  • Please log in to reply
2 replies to this topic

#1
TomcaT

TomcaT

    Member

  • Member
  • PipPip
  • 208 posts
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.
Trained killer in AA:O See my stats Here


Any Time Baby!!


How to remove advertisement from MSFN

#2
tain

tain

    Cyber Ops

  • Super Moderator
  • 3,680 posts
  • OS:none specified
  • Country: Country Flag

Donator

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
TomcaT

TomcaT

    Member

  • Member
  • PipPip
  • 208 posts
Thank you TaIN for the quick response, I will try this out tommorrow!!! :thumbup
Trained killer in AA:O See my stats Here


Any Time Baby!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN