I'm writing a VBScript that pattern matches the last 100 lines of a
log file - and if there is a match sends an email.
I have cygwin on my system - but would prefer to use something Windows
like to capture the last 100 lines.
What is the Windows equivalent of UNIX tail?
Thanks.
> What is the Windows equivalent of UNIX tail?
Frank Peter Schulze wrote a vbs to provide a tail like functionallity..
Have a look here:
http://www.fpschultze.de/PDdownloads+singlefile.cid+3+lid+49.htm
regards Dirk
i have forgotten something...
> > What is the Windows equivalent of UNIX tail?
tail.
Part of the Windows Resource Kit...
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd
regards Dirk
There is a MS tail in a resource kit.
There are a lot of 3rd party ports of tail.
You can emulate tail in vbscript or batch.
Depending on the size of your log files you might be better off to
stick with your cygwin version.
For overall use on any windows, use a script emulation
<http://www.google.com/search?q=vbscript+tail>
--
HTH
Matthias