You will get many types of responses to this question - some of which will
be "don't use the scheduler"! Since our scheduled tasks have worked ok,
I'll just pass along the one problem we ran into in case it helps.
Your CF server calls these scheduled tasks by emulating a browser (somehow -
not sure, but it shows up in the web server's log as 'CFSCHEDULER').
Because it is emulating a browser the server must know where to find the URL
you entered into the scheduled task. We thought we could solve the problem
by putting in 127.0.0.1 as the server, but still had to put an entry in the
hosts file so the server could "see itself". I think - been a long time and
it's getting fuzzy, but maybe that helps.
Dan
-----Original Message-----
From: Willy Ray [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 11:15 AM
To: CF-Talk
Subject: Schedule Tasks in CFADMIN
I have a template I want to run monthly. Here's what it does:
1. Deletes all records flagged for deletion.
2. Checks for records that are a year old
3. Flags those for deletion
4. CFmails the email addresses in the year-old records, "Hey, your record
is flagged for deletion. Will be deleted in a month."
So every month, it would delete the records it flagged the month before, and
flag some more records to be deleted the next month.
Runs great when I just call the sucker in my browser. But it doesn't work
when I use the administrator to schedule it. What's happening here? Why
shouldn't it work out of the task scheduler?
Willy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists