Unix tail-like lister (or watch how a text file changes)

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
membrillo
Junior Member
Junior Member
Posts: 8
Joined: 2004-05-05, 07:04 UTC

Unix tail-like lister (or watch how a text file changes)

Post by *membrillo » 2007-10-19, 10:19 UTC

If you have to watch a file (usually a log file) to follow the appended data, it is very useful de tail -f unix command.

In windows world we don't have this tool, so it would be great that TC could do this.

This could work as a lister window, reading periodically last bytes of the watched file, and showing them.

And it could be extended to follow changes in more than one file, organizing the windows (each window showing one file) as a cascade to be able to see how all files change, or using tabs,...

User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz » 2007-10-19, 10:24 UTC

I switched to Linux, bye and thanks for all the fish!

User avatar
jaco
Junior Member
Junior Member
Posts: 55
Joined: 2006-11-15, 10:15 UTC
Location: Amsterdam
Contact:

Post by *jaco » 2007-10-19, 11:47 UTC

In windows world we don't have this tool,
I sometimes use this one:

http://infiero.com/tailxp/index.html

Stas Agarkov
Junior Member
Junior Member
Posts: 2
Joined: 2007-06-07, 08:29 UTC
Location: Belgorod
Contact:

Post by *Stas Agarkov » 2009-10-31, 10:18 UTC

TailXP not work with unix way line end (0x0A)!

User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom » 2009-10-31, 11:30 UTC

GNU: UnxUtils or the same collection from google gears that has a handful of updated/extra binaries.
_type.exe [renamed from type.exe]
agrep.exe
ansi2knr.exe
basename.exe
bc.exe
bison.exe
bunzip2.exe
bzip2.exe
bzip2recover.exe
cat.exe
chgrp.exe
chmod.exe
chown.exe
cksum.exe
cmp.exe
comm.exe
compress.exe
cp.exe
csplit.exe
cut.exe
dc.exe
dd.exe
df.exe
diff.exe
diff3.exe
dircolors.exe
dirname.exe
du.exe
egrep.exe
env.exe
expand.exe
expr.exe
factor.exe
fgrep.exe
flex.exe
fmt.exe
fold.exe
fsplit.exe
gawk.exe
gclip.exe
gdate.exe [renamed, from date.exe]
gecho.exe [renamed, from echo.exe]
gfind.exe
gplay.exe
grep.exe
gsort.exe [renamed, from sort.exe]
gunzip.exe
gzip.exe
head.exe
id.exe
indent.exe
install.exe
join.exe
jwhois.exe
less.exe
lesskey.exe
ln.exe
logname.exe
ls.exe
m4.exe
make.exe
makedepend.exe
makemsg.exe
man.exe
md5sum.exe
mkdir.exe
mkfifo.exe
mknod.exe
mv.exe
mvdir.exe
nl.exe
od.exe
paste.exe
patch.exe
pathchk.exe
pclip.exe
pr.exe
printenv.exe
printf.exe
ptx.exe
pwd.exe
qclip.exe
recode.exe
rm.exe
rman.exe
rmdir.exe
sclip.exe
sdiff.exe
sed.exe
seq.exe
sha1sum.exe
shar.exe
sleep.exe
split.exe
stego.exe
su.exe
sum.exe
sync.exe
tac.exe
tail.exe
tar.exe
tee.exe
test.exe
touch.exe
tr.exe
tsort.exe
uname.exe
unexpand.exe
uniq.exe
unrar.exe
unshar.exe
unzip.exe
uudecode.exe
uuencode.exe
wc.exe
wget.exe
which.exe
whoami.exe
xargs.exe
yes.exe
zcat.exe
zip.exe

Stas Agarkov
Junior Member
Junior Member
Posts: 2
Joined: 2007-06-07, 08:29 UTC
Location: Belgorod
Contact:

Post by *Stas Agarkov » 2009-10-31, 13:27 UTC

Than you very much!! Cool!

User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom » 2009-10-31, 14:10 UTC

With the functionality of UnxUtils, I've pretty much been able to forgo installing Cygwin. Plus I've found a number of interesting ways to utilize gawk within batch files.

A snippet from my MakeList2.cmd

Code: Select all

FOR /F "tokens=1-4* delims= " %%B IN ('DIR /A-D /ON') DO (
	FOR /F "tokens=1-3 delims=/" %%X IN ("%%B") DO (
		IF NOT "%%~Z" == "" (
			ECHO "%%F"?%%E >> %output%.len
		) ELSE (
			IF "%%~C"=="File(s)" ( 
				SET totalFiles=%%B
				SET totalBytes=%%D
			)
		)
	)
)

SET gStrlen=		^"{	len=length($1); siz=length($2);
SET gStrlen=%gStrlen%		if( len > maxlen ) maxlen=len;
SET gStrlen=%gStrlen%		if( siz > maxsiz ) maxsiz=siz; 
SET gStrlen=%gStrlen% } END { print maxlen + maxsiz; }"

FOR /F %%S IN ('type %output%.len ^| gawk.exe -F? %gStrlen%') DO SET maxlen=%%S

bedac
New Member
New Member
Posts: 1
Joined: 2009-10-31, 17:14 UTC

Post by *bedac » 2009-10-31, 17:19 UTC

I often use BareTail from Bare Metal Software for monitoring.
There is a freeware version as well as a 'pro' version.

andres992
Member
Member
Posts: 124
Joined: 2006-04-12, 21:26 UTC

Post by *andres992 » 2009-11-01, 19:43 UTC

I have used this one, called Dynamic Log Viewer

http://mx-3.cz/go.php?page=logview.htm&language=en

Its version 1.3.1 is quite comfortable for log monitoring realtime in UTF-8.
#68776 Personal Licence

User avatar
Impeeza
Junior Member
Junior Member
Posts: 15
Joined: 2004-04-30, 15:04 UTC

I support the idea

Post by *Impeeza » 2017-12-29, 21:49 UTC

Sorry for revitalize this thread, but I think this is a wonderful Idea, lot of times I need this functionality, my workaround is keep pressing [F2] and [End] constantly on file logs I am monitoring, but sometimes get tired :P.

The use of third party software is no work for me, I really don't want to buy extra software.

O hope Ghisler could help us.

Regards.
Impeeza jaja

Post Reply