Scheduled Task

Hello,

I need to schedule a task to run on the last day of each month at 11.59pm.

I have been into the Administrator to see how to set this up but there doesn't seem to be enough options to do what I need to do.

So first: is this possible and if so how do I go about setting it up?

These are the fields in the schedule form in the administrator that i am using. Perhaps someone can help me fill in the blanks?

Task Name: updateRetainerHours
Duration: Start Date: "blank" End Date (optional) "blank"
Frequency: Recurring: Monthly at "?????"

Thanks in advance

Chris
LVL 2
chrissp26Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SidFishesCommented:
Check out cfschedule

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a30.htm

It has more flexibility than setting up a task in cfadmin
0
chrissp26Author Commented:
Thanks for that. I had a look at it earlier.

As I understand it, the date i specify the task to start is the date the task will be carried out each month.

So if I started the task on 31.05.2006 then the task will run on the 31st of each month. So what happens when there are not 31 days in a month? Or am I thinking to deeply into the whole thing?

Cheers

Chris
0
SidFishesCommented:


adapt this
http://www.johnwbartlett.com/CF_tipsNtricks/index.cfm?TopicID=44

save as lastdayTask.cfm
<CFIF  Day(Now()) NOT EQUAL DaysInMonth(Now())>
  <CFABORT>
<cfelse>
<cfquery name="lastdayupdate" datasource="mydb">
<update sometable set somedata = 1 where id = someid
</cfquery>
</CFIF>

then run lastDayTask.cfm every day at a time you want. the query will only run if it's the last day of the month.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chrissp26Author Commented:
Cool, I thought about something like that but wasn't sure if CFSchedule could do it better.

Thanks for your help.

All the best

Chris

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.