Try this.

<cfset v_date = dateformat(#now()#,"MM/DD/YYYY")>
<cfset v_time = timeformat(#now()#,"HH:mm:ss")>


<cfoutput>
<cftry>
        <cfschedule action="UPDATE" task="schedule_name"
        operation="HTTPRequest"
        url="url"
        startdate= v_date starttime= v_time
        interval="ONCE" resolveurl="No" publish="No">
<cfcatch>
        <b>The schedule was not created.</b><br>
</cfcatch>
</cftry>
</cfoutput>



-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 4:03 PM
To: CF-Talk
Subject: RE: Confused about CFSCHEDULE


Well do I need to use action="run" when I want to add an event to the
schedule?

action="update" doesn't seem to do it, though the docs say I can use it to
add an event.  I don't see it happening??

*  -----Original Message-----
*  From: Christopher Olive, CIO [mailto:[EMAIL PROTECTED]]
*  Sent: Monday, October 30, 2000 3:16 PM
*  To: CF-Talk
*  Subject: RE: Confused about CFSCHEDULE
*
*
*  no, the CFSCHEDULE task allows you to interface with the cfadmin.
*
*  from the docs:
*
*  "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 in order to
*  populate the data on
*  the page."
*
*  best used for long running reports.  the user would fill out
*  some form, the
*  CFSCHEDULE tag would be used to...well, schedule the report,
*  with the data
*  passed (perhaps) in the URL called.
*
*  chris olive, cio
*  cresco technologies
*  [EMAIL PROTECTED]
*  http://www.crescotech.com
*

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to