• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
TomcaT

Crontab - Syntax

3 posts in this topic

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.

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.