Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfschedule problem

Status
Not open for further replies.

lwfg

Programmer
Feb 9, 2009
52
US
Can't get cfschedule to work and would be very happy to find out what I'm doing wrong. Want to get trya.cfm to run tryb.cfm every 75 seconds but get no result. Tryb.cfm works when run directly without cfschedule.

THIS IS TRYA.CFM

<html>
<head>
<title>
</title>
</head>
<body>
<cfschedule action="update" task="try"
operation="httprequest"
url="ADDRESS HERE/tryb.cfm"
startdate="06/29/10"
enddate="07/02/10"
starttime="9:00 AM"
interval="75">
</cfschedule>
</body>
</html>

THIS IS TRYB.CFM

<html>
<head>
<title>
</title>
</head>
<body>
<cfset todir=DRIVE AND DIR HERE>
<cfset tofile='delthis_.htm'>
<cfset todirfile=todir & tofile>
<cffile action="write" file="#todirfile#" output="a">
</body>
</html>
 
<cfschedule action="update" task="userRanks" operation="httprequest" startDate="01/01/2009" starttime="00:00:01" url=" interval="3600">
<cfschedule action="run" task="userRanks">

here is my scheduled task code.. i run it once and it runs every 3600 seconds as expected
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top