Great! I'm glad it's working. I may need to use this in the future. ;^) _____
From: C S [mailto:[EMAIL PROTECTED] Sent: Fri 5/9/2008 8:48 PM To: CF-Talk Subject: Re: CF8: Reading a file from the end instead of the beginning? >You could shell out (CFEXECUTE) the tail command to get those lines. Michael, Good suggestion. Tail works very well. Cheers. <cfset numOfLines = 10> <cfset logFilePath = server.coldFusion.rootDir & "/logs/exception.log"> <cfexecute name="c:\program files\Windows Resource Kits\tools\tail.exe" arguments="-#numOfLines# #logFilePath#" variable="output" timeout="60" /> <cfset arr = listToArray(output, chr(10))> <cfdump var="#arr#"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305058 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

