Hi,
Henrik may have covered this with you offline, but LastLine is a recent (VisualCron 7.0.0) addition.
Pre VisualCron 7 (We are still 6.2.2 on our Production Servers) an easy way to do this was using a couple of lines in a VisualCron powershell task. This example is 3 lines but just change the Select-Object to -Last 1 if that is what you want.
This example also uses a VisualCron Trigger as the filename.
This can be replaced with a more traditional filename "C:\Temp\Somefile.log" if that is how you roll (using variables if you have set your log file name).
--- snip ---
# Get the Last 3 Lines of the File found by the Trigger
$Tail = Get-Content "{TRIGGER(d9a226ae-0ad2-42fb-b518-1efd5af13bf7|LastTrigger|File.Result.FullPath)}" | Select-Object -Last 3
# Write that Variable to Output for use in later VisualCron tasks
Write-Output $Tail
--- snip ---
Hope this helps . . . . see screen print
Regards
Kevin
Edited by user
2013-08-05T22:27:18Z
|
Reason: Added Screen print reference
KJDavie attached the following image(s):