Perfect. This comes in very handy and at the right time for a new
feature in Razuna (that is, synching with directories). With this I
don't need to bang my head against the door anymore trying to
manipulate the system :-)

On Fri, Mar 5, 2010 at 10:47 AM, Alan Williamson <[email protected]> wrote:
> 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 !!
>



-- 
See for yourself how easy it is to manage files today. Join the revolution!

Razuna SaaS On-Demand - Hosted Digital Asset Management Solution
http://www.razuna.com/

Razuna - Open Source Digital Asset Management
http://www.razuna.org/

Follow us on Twitter
http://twitter.com/razunahq

-- 
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