Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows equivalent of UNIX tail

1,071 views
Skip to first unread message

gimme_this...@yahoo.com

unread,
Feb 7, 2009, 12:02:51 AM2/7/09
to
Hi,

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.

Dirk Stegemann

unread,
Feb 7, 2009, 1:15:13 AM2/7/09
to
Hi,

> 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

Dirk Stegemann

unread,
Feb 7, 2009, 1:27:31 AM2/7/09
to
Sorry,

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

Matthias Tacke

unread,
Feb 7, 2009, 1:35:29 AM2/7/09
to
No Windows version has an intrinsic tail.

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

0 new messages