The problem I have had with CFSCHEDULE is successfully specifying the
URL.
The following method works for me (CF_TEMPLATE_PATH is a CGI variable
provided by the server, i.e.,
CF_TEMPLATE_PATH=D:\INETPUB\WWWROOT\cfide\administrator\index.cfm):
<cfset target_url = "#REReplace("#CF_TEMPLATE_PATH#", "/[^/]+\.cfm", "",
"ALL")#/find_expired_accounts.cfm">
<cftry>
<cfschedule
action="UPDATE"
task="Find Expired Accounts"
operation="HTTPRequest"
url="#target_url#"
startdate="1/1/1997"
starttime="4:00 AM"
interval="Daily"
resolveurl="No"
publish="No"
>
<cfcatch TYPE="Any"></cfcatch>
</cftry>
Hope this helps.
-----Original Message-----
From: Josh
To: Fusebox
Sent: 10/30/00 1:08 PM
Subject: Re: CFSCHEDULE
The mysteries of the CF scheduler are many. The developers I know have
never been able to get it working properly, always the same problem, it
shows up in the list but won't
execute. I remember looking on Forums to find an answer and there seem
to be two types of people:
1) people who can't get it working
2) people for whom it works like a charm, and can't imagine it not
working
I've never found an answer or a root cause. We just decided to use NT's
"AT" command to schedule things. Check out Allaire Forums, there should
be plenty of questions in the archive
like yours.
Josh Diehl
Christian Wip wrote:
> As a new member to this forum I'm pretty sure I'm not the first to ask
this
> question.... so my apologies in advance :)
>
> I'm having a hard time using the CFSCHEDULE command in CF4.0.1. I'm
pretty
> sure I do everything correct (see below):
>
> <CFSCHEDULE
> ACTION="UPDATE"
> OPERATION="HTTPRequest"
> INTERVAL="ONCE"
> LIMITTIME="60"
> STARTDATE="#dateFormat(dateAdd("s",#delay#,#date#),'MM/DD/YY')#"
> STARTTIME="#timeFormat(dateAdd("s",",#delay#,#date#),'HH:mm:ss')#"
> TASK="#taskname#"
> URL="#url#">
>
> I see the task in CF Administrator but it just won't execute. The
scheduler
> does work if done manually through the admin module.
>
> I have 2 questions:
>
> 1) What is the deal with CF4.0.1, from what I read the scheduler is
not very
> reliable. Am I still doing something wrong or should I forget about
using
> CFSCHEDULE ?
>
> 2) Does anyone have any suggestions for any good scheduling
applications /
> shareware / tags out there that I can use for scheduling tasks through
the
> web ?
>
> Thanks, Christian
>
>
------------------------------------------------------------------------
------
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------
------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.