日志查看工具

Windows下的tail一二三:tail、BareTail、WinTail
在Windows下查看输了的日志log的文件,使用UE或Edit plus可以知道文件改变了,但是光标都会回到文件头部去,很不方便,用记事本就更不用说了。
如何才能在Windows下象在Linux使用tail一样方便地来查看日志呢?
1、Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
但是这个下载后的文件却是要求Windows XP系统之类的,我用的是Win2K,晕,当然有方法来绕过它了。
还是先下载文件,用WinRAR可以解开它,成三个文件:rktools.msi、rktools_p.cab和rktools_s.cab
rktools.msi安装包是所有的工具集的安装文件,用7-Zip直接解压打开就可以看到里面的文件了,比如解压到C:\DOS目录下
rktools_p.cab和rktools_s.cab文件里包含一个rktools.chm的使用帮助文件,同样用7-Zip来打开,用WinRAR或者WinCAB也可以打开
使用:
C:\DOS>tail/? 一成不变的方法,/?来查看使用帮助
usage: TAIL [switches] [filename]*
   switches: [-?] display this message
             [-n] display last n lines of each file (default 10)
             [-f filename] keep checking filename for new lines
示例:
tail xxx.log 查看文件,默认显示最后的10行
tail -100 xxx.log 显示最后的100行
tail -f xxx.log 一直查看文件的变化。

Kit Tools里还包含了很多有用的工具,其它的不进行介绍了,自已去挖掘:)

2、BareTail : A free real-time log file monitoring tool,有Free Version
http://www.baremetalsoft.com/baretail/index.php
也有专业版的BareTailPro,要收费的 : http://www.baremetalsoft.com/baretailpro/index.php

3、WinTail : Hoo的商业WinTail软件,Hoo WinTail is a real-time log monitor and viewer for Windows like the UNIX tail -f utility.
http://www.hootech.com/WinTail/

建议用BareTail或Windows的tail.exe,基本上可以满足我们的日常需要。
附上Windows Server 2003 Resource Kit Tools的tail.exe下载,免得去下载安装或解压了。

猜你喜欢

转载自xls9577087.iteye.com/blog/2059337