jochem,

thank you!!  it will be wholly used by me and my company for our
internal stuff
and I have complete control over all aspects, so yeah...naming
conventions not
an issue, but thanks for the heads up!  ill be playing with it tomorrow,
and
ill let u know how it all goes :)

later man!

...tony

Tony Weeg
Senior Web Developer
UnCertified Advanced ColdFusion Developer
Information System Design
Navtrak, Inc.
Mobile workforce monitoring, mapping & reporting
www.navtrak.net
410.548.2337 

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, January 19, 2003 6:08 PM
To: CF-Talk
Subject: cfschedule question


Dave Watts wrote:
>
>CFMX doesn't store any configuration information in the registry. I
think
>that scheduled events are stored in \CFusionMX\lib\neo-cron.xml.
>
>But, rather than edit that file directly while CF is running, you might
>instead want to use the appropriate API. Jochem van Dieten's site has
>information on that; I don't remember the URL offhand, but I'm sure
it's
>in the list archives somewhere.

What you need to have is the cronservice and then listAll().
<cflock name="serviceFactory" type="exclusive" timeout="10">
  <cfscript>
    factory = CreateObject("java", "coldfusion.server.ServiceFactory");
    cronservice = factory.cronservice;
    tasks = cronservice.listAll();
  </cfscript> 
  <cfdump var="#tasks#"> 
</cflock>

This will return a complete list of all the scheduled tasks defined on
the system. To make sure you can always identify which task belongs to
who you should stick to some convention for the name. The actual
changing of tasks can be done using cfschedule (be sure to revoke
cfschedule permissions for your clients).
Make sure your clients don't schedule anything between 02:00 and 03:00
because of DST issues.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to