|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
setting up cfschedule
Hi, I want to add a .cfm page to my site that sends emails at specified times.
Do I just include a page like schedule.cfm, with some code like the following, in the site and if so how does the hosting server know when to run it? Does a computer with an internet connection need to run it remotely? <cfschedule action="Update" task="SimpleTask" URL="http://YourSite.com/YourPath/task.cfm" interval="600" operation="httprequest" StartDate="#DateFormat(Now())#" StartTime="#TimeFormat("00:00:00")#" publish="yes" path="#LogFileDir#" file="#LogFileName#"> This code is only an example. Regards Peter |
|
#2
|
||||
|
||||
|
Read the docs if you haven't already.
Are you sure that your host has this enabled? I thought it was disabled by default, and I wouldn't think that many hosts would allow it. |
|
#3
|
|||
|
|||
|
If the host has it enabled, then yes, running a page with the <cfschedule> tag add that task to the list of scheduled tasks and it will run at the interval you specified.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#4
|
|||
|
|||
|
if not allowed by host.
If scheduled tasks aren't allowed by the hosting company what are the alternatives?
peter |
|
#5
|
|||
|
|||
|
I,ve read the documentation but it only seems to say what to do without hosting companies barring the facility.
Regards Peter |
|
#6
|
|||
|
|||
|
The only alternative is to do it manually as far as I know.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > setting up cfschedule |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|