<cfschedule action = "update" task = "taskname" operation = "HTTPRequest" file = "filename" path = "path_to_file" startDate = "date" startTime = "time" url = "URL" publish = "Yes" or "No" endDate = "date" endTime = "time" interval = "seconds" requestTimeOut = "seconds" username = "username" password = "password" resolveURL = "Yes" or "No" proxyServer = "hostname" port = "port_number" proxyPort = "port_number"> <cfschedule action = "delete" task = "TaskName"> <cfschedule action = "Run" task = "TaskName">
Provides a programmatic interface to the ColdFusion scheduling engine. You can run a specified page at scheduled intervals with the option to write out static HTML pages. This lets you offer users access to pages that publish data, such as reports, without forcing users to wait while a database transaction is performed in order to populate the data on the page.
ColdFusion scheduled events are registered using the ColdFusion Administrator. Execution of cfschedule
can be disabled in the Administrator.
Information supplied by the user includes the scheduled ColdFusion page to execute, the time and frequency for executing the page, and whether the output from the task is published. If the output is published, a path and file are specified.
The event submission and its success or failure status is written to the \cfusion\log\schedule.log
file.
cfcookie,
cfparam,
cfregistry,
cfsavecontent,
cfset
You cannot use cfschedule
and apply the Secure Sockets Layer (SSL) to an application.
<!--- This example shows an example of cfschedule ---> <html> <head> <title>cfschedule Example</title> </head> <body> <H3>cfschedule Example</H3> <P>cfschedule provides a programmatic interface to the ColdFusion scheduling engine. You can run a specified page at scheduled intervals with the option to write out static HTML pages. This allows you to offer users access to pages that publish data, such as reports, without forcing users to wait while a database transaction is performed to populate the data on the page. <cfschedule action = "update" task = "TaskName" operation = "HTTPRequest" url = "http://127.0.0.1/playpen/history.cfm" startDate = "8/7/98" startTime = "12:25 PM" interval = "3600" resolveURL = "Yes" publish = "Yes" file = "sample.html" path = "c:\inetpub\wwwroot\playpen" requestTimeOut = "600"> </body> </html>