>- see footer for list info -<
Hi there Stephen, Inside the CF Admin (under log settings) there is an option to archive the log files after a certain file size. You could use this to get the log file away from CF and then archive the older files.
This would mean that you need to wait to the file reaches the minimum size but it would get around the CF grabbing onto the file issue. Hope this helps, Lucas. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:dev- > [EMAIL PROTECTED] > Sent: Monday, March 14, 2005 4:26 PM > To: [email protected] > Subject: [CF-Dev] Log move error on MX 6.1 > > >- see footer for list info -< > Lo all, > > I am just trying to write a tiny scheduled task to backup the days logs on > a CFMX machine. All I want it to do is to move the application.log etc etc > to another folder where I can zip them up and email them off (you know the > usual stuff !). > > The problem I'm having is that when I try and move the files I get an > error, the script can copy fine but when moving or renaming (which is what > I really want to do so that it will stop the log there and so create a new > log file when there is the next call to the application logs etc) it fails. > I have tried a lock and a try and catch, then cfdumping the error but it > just gives me an empty struct (which is helpful !). > > Is there a feature of CFMX that you cant move the log files with code ? Or > is it just that they are in constant use? > > I have furiously googled for this issue and drawn a blank so any help > would be appreciated or if anyone has had a similar issue, as this seems > the most trivial simple issue of just moving a file and is now giving me a > headache :Â) > > TIA for any help :Â) > > Regards > > Stephen Pope > > --- > > Stephen Pope > > Development Team > Advanced Certified Macromedia ColdFusion MX Developer > Certified Sitecore Developer > > Eduserv Internet > managed hosting & development > > _____ > > [EMAIL PROTECTED] > > tel: +44(0)1225 474371 > fax: +44 (0)1225 474374 > > http://www.eduserv.org.uk/internet <http://www.eduserv.org.uk/internet/> > > _____ > > Eduserv Internet is a service of Eduserv Technologies Ltd > > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- Hosting provided by www.cfmxhosting.co.uk -< > >- Forum provided by www.fusetalk.com -< > >- DHTML Menus provided by www.APYCOM.com -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help - > <
_______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
