码迷,mamicode.com
首页 > Windows程序 > 详细

【PHP分享】Windows tail工具分享

时间:2014-09-28 17:09:43      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:style   http   color   io   os   使用   ar   strong   for   

  作者: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 --help
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:\Users\wade.zhan>tail -f D:/temp/php-errors.log

【PHP分享】Windows tail工具分享

标签:style   http   color   io   os   使用   ar   strong   for   

原文地址:http://blog.csdn.net/billfeller/article/details/39642065

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!