As a side note, which would be easier. I would hide the scheduled task
template behind the webroot. This means that only the machine can
execute this cfml template, I am not sure why a scheduled task would be
needed to have validation, unless CF doesn't have this permission.

I would actually use something other than CF for automatic running of
schedules. This way you don't need a web address and could use the
cfexec to run the template, there are many scenarios that can be
achieved. For example a special template could be setup to pass the
credentials to the template that needs to be run but I think that is a
waste of processing time.

Again, if you sit down with all your options then there is bound to be a
solution that is right.

As far as permissions go, the permission that CF runs under will also
need to be addressed here as well. I would have to know more about the
concept here, but this should be enough to get you going.



-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, 30 December 2001 12:11 AM
To: CF-Talk
Subject: Re: Scheduled Tasks that require Authorization

Jim McAtee wrote:

> I've got several CF templates located in an NTFS protected web site.
I'm
> having some trouble getting the CF scheduler to run them and am
wondering if
> it could be permission related.  If the templates are located on same
> computer as the CF scheduler trying to run them, is it necessary to
supply
> login credentials?  On this server CF is running as SYSTEM, which has
access
> to the directories.

AFAIK the way the scheduler works is that it does an HTTP request for 
that specific file. Since you have NTFS protection enabled that would 
indeed fail (I believe CF can only handle basic security).

What you could do is use the OS scheduler to send the templates directly

to the CF engine. Something like:
at 00:07 \every:m,t,w,th,f,s,su "c:\cfusion\bin\cfml.exe 
c:\inetpub\wwwroot\scripts\myscript.cfm"

Jochem

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to