How to use tail.exe : Windows 2003 Resource kit tool

1

Tail.exe from Windows 2003 Resource kit link to download page

I tried "option -f filename.xyz" - this doesnot seem to update. In my .net app, log file is updated using this code :

FileStream fileStream = File.Open(path, FileMode.Append, FileAccess.Write; ...

throws access exception, file in use by another tool which is Tail.exe

Am I missing something here.. how should tail.exe be used.

Avinash

Posted 2010-12-14T02:36:58.443

Reputation: 111

Answers

1

Have you tried a different tail port? E.g. the one included in UnxUtils which has worked for me with a log file opened in a similar manner.

These days I tend to prefer the follow functionality in less (press shift-F to follow when viewing a file) because I can switch out of follow to look back in the file.

Richard

Posted 2010-12-14T02:36:58.443

Reputation: 8 152

I chked other similar questions that suggest this tool and other tail tools. But my company doesnot allows installing them :( – Avinash – 2010-12-15T06:23:45.620

@Avinash understanding the policy might help you get an exception. Just remember to work with your bosses and make an economic argument (this tool will save time, which is worth $$....). – Richard – 2010-12-15T09:01:08.520

0

As of version 6.9.2, Notepad++ can replicate tail functionality by monitoring an open file.

Alan B

Posted 2010-12-14T02:36:58.443

Reputation: 1 260

0

You could try "Unix tail equivalent command in Windows Powershell". The nice thing about this solution is that there is no extra software to install provided that PowerShell is alreayd installed. Also, it may be more acceptable for your company to allow PS to be installed if is not already. It ships with Windows Vista and newer and is available for Windows XP via Windows Update.

jftuga

Posted 2010-12-14T02:36:58.443

Reputation: 2 877

-1

I landed here after downloading the Windows 2003 Resource Kit Tool and searching how to use tail, specifically I wanted to watch an output file during a build.

tail output.txt -f

-f will follow and append the file content.

conapart3

Posted 2010-12-14T02:36:58.443

Reputation: 1

2Why the downvote...? I landed here after searching "how to use tail windows 2003 resource kit tool" and this question title is an exact match - "How to use tail.exe : Windows 2003 Resource kit tool". None of the answers here actually answer the question, they say to use another application. My answer exactly describes how to use tail, answers the exact question I asked, and answers the title of this question precisely so if someone else lands here they will have their answer. – conapart3 – 2018-01-10T13:13:57.533