>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:305053
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4