Ahh good old perl... I've done the same thing to pgp encrypt files before sending them off using Perl..
It truely is something every developer should learn. M ----- Original Message ----- From: "Cliff Meyers" <[EMAIL PROTECTED]> To: "CF-Linux" <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 2:59 PM Subject: Re: Cfexecute and fork() > On Thu, December 9, 2004 3:51 pm, Dave Carabetta said: > > I'm not Steve, but I can definitely vouch for this problem. We were > > using it to make a simple external call to a program and, running top, > > you could see the entire parent process (JRun, in this case) > > duplicated just to run the external program, including RAM. Search the > > archives for more details as this has come up a couple of times now. > > Essentially: Do not use cfexecute on *nix systems, whether it be Linux > > or Solaris. > > 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. > > > -Cliff > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:3770 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
