作者:zhanhailiang 日期:2014-09-28
在linux下可以使用tail -f工具实时查看输出的日志。最近切换到本地windows开发环境,顿时有点不爽。百度了下,终于找到tail的windows的实现版本。
1. 下载tail,解压后将tail.exe复制到path路径下,以笔者为例,c:\windows\system32;
2. 测试如下:
microsoft windows [版本 6.1.7601]版权所有 (c) 2009 microsoft corporation。保留所有权利。d:\users\wade.zhan>tail --helptail 1.0.0.1 created by jorgen bosmanusage: tail [options] fileoptions: -[x]f : follow the file and display new lines as they are written to the file optionally display the x last lines first (default=10) -n x : displays the last x lines of the file -s x : sleeps x miliseconds between 2 read attempts for -f optiond:\users\wade.zhan>tail -f d:/temp/php-errors.log