Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Cron Jobs

  1. #1
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post

    Cron Jobs

    Let's say I start a cron job to go every 1 month...

    Let's also say that I do this at April 14....
    Would this cron job go every month starting from when it was executed.. so the next execution date would be: May 14, then June 14, July 14, etc.

    OR

    Would the next execution date be: May 1, June 1, July 1, etc...


    Thanks?
    Formerly MysticScript

    6+ years club

  • #2
    bdl
    bdl is offline
    Regular Coder
    Join Date
    Apr 2007
    Location
    Camarillo, CA US
    Posts
    590
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Why is this in Apache?

    If you wanted a cronjob to run once a month, it can run either on the 1st of each month, or once per month on the date starting with today, tomorrow, etc. It's in how you configure the crontab entry.

    In other words, an entry that reads "once per month" is not the same as one that reads "once per month on the 1st". I wrote an article on cron a long time ago, if you Google "cron" you'll probably find it.

  • Users who have thanked bdl for this post:

    UrbanTwitch (04-02-2010)

  • #3
    Regular Coder UrbanTwitch's Avatar
    Join Date
    Apr 2006
    Posts
    485
    Thanks
    44
    Thanked 1 Time in 1 Post
    Sorry I did not know where else to put it.

    Thanks.
    Formerly MysticScript

    6+ years club


  •  

    Posting Permissions

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