Nitai @ Razuna wrote:
1.
How would I go about having a page run every 4 hours?

With this method, you can't. I mirrored the Linux directories. You would have to do this "old skool". Although you could do a simply <CFIF> in your hourly pages

<cfif Hour(now()) MOD 4 == 0>
  every 4 hours
</cfif>


2.
Can I programmatically write pages into a cron.d directory (since it
lives in the webapp dir I guess just calling cfwrite
file="cron.d/cron.5m/job.cfm" could do it, or?

yup ... or ...

   FileWrite( ExpandPath("/cron.d/cron.5m/job.cfm"), myFile );

and once its there it will be picked up on the next run through.


3.
You state no http call is needed anymore. So, the page in
"cron.d/cron.5m/job.cfm" would just go to the root of the webapp and
execute from there? Will all setting in Application.cfm/.cfc be
applied as well?

don't worry, the normal rules of engagement still apply when it comes to honoring Application.cfm etc. I just don't need to go out and back in when its being sourced from the same place!

The output being stored in the working directory is a very handy feature if i say so myself! ;)

--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en

!! save a network - please trim replies before posting !!

Reply via email to