Re: unix like command in windows DOS tail -f posted 04/25/2008
The resource kit has a tail (and a head) binary, or you could install
Cygwin and have all the normal *nix binaries your used to. Or you could do
something like this in python:
if len(sys.argv) != 3:
print 'Usage: ./pyTail.py <filename> <# of lines>\n'
fname = sys.argv
nline = int(sys.argv)
fd = file(fname, 'r')
for line in fd.readlines()[-nline:]:
> Does anyone know what is equivelent command in windows for viewing logs on
> real time?
> In Linux/Unix, I use
> # tail -f /var/log/message.log
> I want to read the message.log or message.txt file in windows DOS.
> PS: it's bloody Cisco's call manager's TRACE files, I have to open
> to see whats happening.
> Pass the CCIE in six weeks, Guaranteed!
> Subscription information may be found at: