![MACROMEDIA COLFUSION MX 7-CFML Reference Download Page 374](http://html1.mh-extra.com/html/macromedia/colfusion-mx-7-cfml/colfusion-mx-7-cfml_reference_3310974374.webp)
374
Chapter 2: ColdFusion Tags
Usage
This tag and the ColdFusion MX Administrator Scheduled task page schedule ColdFusion tasks.
Tasks that you add or change using this tag are visible in the Administrator. You can disable this
tag in the Administrator Sandbox/Resource security page. This tag’s success or failure status is
written to the schedule.log file in the
cf_root
/logs directory (
cf_webapp_root
/WEB-INF/cfusion/
logs in the multiserver and J2EE configurations).
When you create a task, you specify the URL of the ColdFusion page to execute, the date, time
and frequency of execution, and whether to publish the task output to a HTML file. If the output
is published, you specify the output file path and file.
If you schedule a job to run monthly on any date in the range 28-31, the scheduler does the
following:
•
If you schedule a monthly job to run on the last day of a month, the scheduled job will run on
the last day of each month. For example, if you schedule a monthly job to start on January 31,
it will run on January 31, February 28 or 29, March 31, April 30, and so on.
•
If you schedule a monthly job to run on the 29th or 30th of the month, the job will run on the
specified day of each month for 30 or 31-day months, and the last day of February. For
example, if you schedule a monthly job to start on January 30, the job will run on January 30,
February 28 or 29, March 30, April 30, and so on.
If you schedule a job to run once, the starting time is in the past, and the task has not yet run, it
runs immediately. If you schedule a recurring job with a start time in the past, ColdFusion
schedules the job to run on the next closest interval in the future.
The Scheduler configuration file,
cf_root
\lib\neo-cron.xml contains all scheduled events, as
individual entries.
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"
password
Optional
Password, if URL is protected.
proxyServer
Optional
Host name or IP address of a proxy server.
proxyPort
Optional
80
Port number to use on the proxy server.
proxyUser
Opt
User name to provide to the proxy server.
proxyPassword
Opt
Password
to
provide to the proxy server.
resolveURL
Optional
No
•
Yes: resolves links in the output page to
absolute references.
•
No
Attribute
Req/Opt
Default Description
Summary of Contents for COLFUSION MX 7-CFML
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...