On Thu, 9 Dec 2004 16:52:54 -0500, Ronald West <[EMAIL PROTECTED]> wrote:
> >Yeah, I usually avoid CFEXECUTE like the plague just because
> >you can't trust it.  I once tried to use it to unzip a 500 MB
> >zip file and let's just say that the result wasn't pretty!
> >
> >In the past in order to do command line tasks with ColdFusion
> >I've made use of a Perl script that runs via a cronjob.
> >Create a file somewhere on your system and make sure that it's
> >locked down with respect to permissions so that only the
> >ColdFusion user can modify it.  Use ColdFusion to write
> >"instructions" to this file that can be read by your Perl
> >script.  Then you can set up that script to run in cron every
> >minute.  If the file is blank, it does nothing.  If the file
> >has contents, then your script can do what it needs to do, and
> >then blank out the file when it's done.
> >
> >It ain't pretty, but it does work.  Good luck.
> 
> Thanks for the replies, would either of you agree that this may be an issue
> with the type of task you are planning on executing, or that it does not
> matter?
> 
> I.e. if I unzip a file from a .zip file and the file is 1K, I will see a big
> memory spike?  Is this consistent or intermittent?
> 

No, as I've said before, because of the way fork() is implement in
UNIX, it will make a copy of the parent process's memory footprint and
use that value when it creates the child process (which is what
cfexecute does). 1K or 100000000K, it makes no difference. This is
just a UNIX "feature."

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:14:3771
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to