Is there way have windows XP show me updates to a log file as they happen? I'm thinking of something similar to tail -f <file path>
in the linux realm.
9 Answers
Using Windows Powershell, you can use Get-Content < filename > -wait
There's also a discussion of a Windows Server 2003 tools package that has a tail program which supports -f
I have had good luck with http://sourceforge.net/projects/tailforwin32/. It has some nice options for fonts, colors and keyword highlighting. Feels lightweight and fast to me.
-
1Tail for win32 is a nice GUI application. Highlighting keywords can give you find -f file.txt | grep 'stuff' like functionality. Commented Mar 24, 2010 at 18:44
Just use the tail
program from the cygwin project. this is "just" a ported UN*X tail
command.
I use UnxUtils which are native win32 ports of common gnu utilities. Then I don't have to bother with cygwin.
If you happen to have a version of git
installed that comes with bash
(for instance the one from https://git-scm.com), you can use the tail
included with that.
You can checkout in'side log.
A Java tool I created, able to read local and distant log files using SSH. It is fairly simple to use.
Some more explanations: https://github.com/pschweitz/insidelog/wiki
Just download the version corresponding to your operating system, or the native jar release executable within your Java Runtime (requires java 8_40 or higher):
https://github.com/pschweitz/insidelog/releases
You can find a complete documentation (embedded with and in Github's page as well)
Workaround in case of cmd.exe:
find /c /v "" your_file.txt
- will count the number of lines in the filemore +123456 your_file.txt
- will display lines starting from the specified line number
Calculate point 1 result minus tail you need and put it into point 2, and here it is