当前位置:首页 > 操作系统 > Windows

【PHP分享】Windows tail工具分享

  作者:zhanhailiang 日期:2014-09-28

在Linux下能够使用tail -f工具实时查看输出的日志。近期切换到本地Windows开发环境,顿时有点不爽。百度了下,最终找到tail的Windows的实现版本号。

1. 下载tail,解压后将tail.exe拷贝到Path路径下,以笔者为例,C:WindowsSystem32;

2. 測试例如以下:

                <span>Microsoft Windows [版本号 6.1.7601]
版权全部 (c) 2009 Microsoft Corporation。保留全部权利。

D:Userswade.zhan></span>
                <span>tail --help</span>
                <span>
tail 1.0.0.1 created by Jorgen Bosman
Usage: tail [options] file
Options:
  -[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 option
D:Userswade.zhan></span>
                <span>tail -f D:/temp/php-errors.log</span>
            

原文:http://www.cnblogs.com/blfshiye/p/4008594.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐