#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    10
    Rep Power
    0

    Post Problem in cfschedule


    Hi, I am still newbie in cold fusion,and i want to ask some help with you all who are experts in cold fusion,My problem is that i want to run myupdate.cfm in scheduler using the <cfscheduler> now my problem is that how can i run my script every one year ?


    please help me

    Thank you in advance.
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,279
    Rep Power
    968
    You can either set the interval to monthly and include logic in the code you run to check the date (or a database table) and only run it every 12 months. Or you can try setting the number of seconds to 31556900 (the number of seconds in a typical year).
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    10
    Rep Power
    0
    Originally Posted by kiteless
    You can either set the interval to monthly and include logic in the code you run to check the date (or a database table) and only run it every 12 months. Or you can try setting the number of seconds to 31556900 (the number of seconds in a typical year).

    HI kiteless, Thank you for the reply...okay i will let you know if this will work.I'll be back as soon as i can.

    Thank you again for the quick reply

IMN logo majestic logo threadwatch logo seochat tools logo