Skip to main content
February 3, 2010
Question

Timer

  • February 3, 2010
  • 1 reply
  • 607 views

I have some CFM pages that get data, wrap the report in a PDF and send emails of the reports. How can I make them run every friday morning Im using ColdFusion 8?

Thanks

George

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    February 3, 2010

    You can use the CFSchedule tag to create a scheduled event.

    https://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/tags-a30.htm

    Or log in via the CF administrator and create the schedule from the admin interface.

    ilssac
    Inspiring
    February 3, 2010

    To add to the previous answer, yes you would use the schedule task feature, but the schedule task feature does not have the capability to be scheduled to run "every Friday".

    The normal solution is to schedule the task to run every day.  Then the code of the task checks to see if today is a Friday [#dayOfWeek(now()) EQ 6#] if it is run the task otherwise stop.

    Inspiring
    February 3, 2010

    To add to the previous answer, yes you would use the schedule task feature, but the schedule task feature does not have the capability to be scheduled to run "every Friday".

    Say what?

    I reckon you need a trip to remedial class, mate!

    The UI for scheduling a task clearly has an interval of "weekly", as does <cfschedule>!

    So setting a task to commence on a Friday (eg: on 5 Feb 2010), and setting its interval to "weekly" will... run it every Friday...

    Or am I missing something?

    --

    Adam