Difference between revisions of "Cfschedule"

From Hostek.com Wiki
Jump to: navigation, search
(Created page with "==Creating a Scheduled Task with cfschedule== # Create a file locally using any text editor, save the file with the .CFM extension # Copy and past in the code example below t...")
 
(Creating a Scheduled Task with cfschedule)
Line 2: Line 2:
  
 
# Create a file locally using any text editor, save the file with the .CFM extension
 
# Create a file locally using any text editor, save the file with the .CFM extension
# Copy and past in the code example below taken from the *ColdFusion10 Documentation and save.
+
# Copy and paste in the code example below taken from the *ColdFusion10 Documentation and save.
 
# Replace the data in the example with your data.
 
# Replace the data in the example with your data.
  
  
===Cold Fusion 9 and 10 Example===
+
===ColdFusion 9 and 10 Example===
  
 
<pre>
 
<pre>
Line 30: Line 30:
 
</pre>
 
</pre>
  
<b>References:</b> [http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef Cold Fusion at Adobe]
+
<b>References:</b> [http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef ColdFusion at Adobe]
  
 
*For more information about attributes for cfschedule please see the following link: [http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c6e.html Adobe CF10]
 
*For more information about attributes for cfschedule please see the following link: [http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c6e.html Adobe CF10]

Revision as of 16:52, 19 August 2012

Creating a Scheduled Task with cfschedule

  1. Create a file locally using any text editor, save the file with the .CFM extension
  2. Copy and paste in the code example below taken from the *ColdFusion10 Documentation and save.
  3. Replace the data in the example with your data.


ColdFusion 9 and 10 Example

<h3>cfschedule Example</h3>
<!--- This read-only example schedules a task. 
        To run the example, remove the comments around the code 
        and change the startDate, startTime, url, file, and path attributes
        to appropriate values. --->
<!--- 
<cfschedule action = "update"
    task = "TaskName" 
    operation = "HTTPRequest"
    url = "http://127.0.0.1/playpen/history.cfm"
    startDate = "8/17/09"
    startTime = "12:25 PM"
    interval = "3600"
    resolveURL = "Yes"
    publish = "Yes"
    file = "sample.html"
    path = "c:\inetpub\wwwroot\playpen"
    requestTimeOut = "600">
--->

References: ColdFusion at Adobe

  • For more information about attributes for cfschedule please see the following link: Adobe CF10