Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Excel .Net Library 2020.6
fsMediaLibrary.NET 2019.11
VaxVoIP SIP Server SDK 5.2.0
Database Workbench Pro 5.7.4
dbForge Data Generator for Oracle 2.2
dbExpress driver for SQL Server 8.2
Grobino Online Grocery Shopping 1.1
PortalNest: Dynamics CRM Customer Portal 1.0
Purbis: JustEat Clone Scripts 1.1
Monoline MLM Software 1.3.4
Cab Booking Android Application by iNet Mobile 1.4
Shopping Cart Script by i-Netsolution 1.3.4
PortalNest: SuiteCRM Customer Portal 1.0
SugarCRM WordPress Customer Portal 3.2.0
The C# PDF Library 2020.6.0
Top Code
PBCore 6.x-1.0-beta3
Quick Drafts Access 1.1.1
URL Replace Filter 5.x-1.0
Tutorial de Backpropagation - Un algoritmo de entrenamiento para redes neuronales 1.0
Chess Game 3D 1.1
GTSpam 5.x-0.4
Wikify 6.x-1.0
New York State Senate 6.x-1.0
InsertNode 6.x-1.3
Case Tracker Services 5.x-1.x-dev
Media RSS 6.x-2.9
Similarity Objects 6.x-1.x-dev
GetSocial 1.4
showRSS Widget 1.0.0
TalkBar.eu 1.0
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Tail a continuously growing file (like tail -f filename) 
File ID: 64073






Tail a continuously growing file (like tail -f filename) 
Download Tail a continuously growing file (like tail -f filename) http://code.activestate.com/recipes/577710-tail-a-continuously-growing-file-like-tail-f-filen/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 13
Submit Rating:
Tail a continuously growing file (like tail -f filename)  Description
Description: This is my version of a "File Tail" class for Python3 (will not work on Python2 w/o a couple of modifications). My original inspiration came from the perl File::Tail module.

Transparently handles files that get rotated or truncated.

Does not take 100% CPU.
Does not take up much memory.
Is capable of handling any size log file.
Not tested on Windows

Example:

from filetail import FileTail
tail = FileTail("/var/log/syslog")
for line in tail:
print(line, end="")

License: Freeware

Related: File, Rotate, Tail

O/S:Windows

Downloads: 13



More Similar Code

Morphbank is a continuously growing database of images. This repository contains the php software which interfaces with the morphbank database.



TIMESPLITRINEX splits a RINEX GPS file by time.
TIMESPLIT(FILENAME,t) breaks a RINEX file into shorter files of length t in seconds. Useful for breaking a large file into days, or a day file
into hours, etc.

EXAMPLE: If...



Sometimes you have a file-like object (such as what urllib.urlopen() returns), but you need to pass it to a function/method that insists on receiving a true file object (what the file or open built-in functions give you). What you need is a...



This recipe presents a general purpose file object iterator cum file object proxy class.
It provides a class that gives several iterator functions to read a text file by characters,
words, lines, paragraphs or blocks. It also acts as a...



Generate a Windows command file that executes a Python program. Typing
'my_prog arg1 is easier than typing 'python C:\PyLib\my_prog.py arg1'.
Needed because Windows does not support '#!/bin/env python' as the first
line of the...



A very simple proof-of-concept of an ostreams-like interface wrapping around
file-like objects, included a demonstration of manipulators.



This software like a Text Log File Reader.



Picnix is a set of Unix-like commands for Windows. It has: cat, chmod, cp, df, diff, du, fgrep, grep, head, ls, more, mv, psort, rm, sleep, strings, tail, tee, touch, uniq, wc, which, and pmake, which is largely compatible with Gnu make, and faster.



A method to parse a file like object containing data in the record jar format as described by ESR in "The Art of Unix Programming" (see http://www.faqs.org/docs/artu/ch05s02.html#id2906931).



STLWRITE(FILE,fv) writes a stereolithography (STL) file to FILE for a triangulated
patch defined by FV (a structure with fields 'vertices' and 'faces').

STLWRITE(FILE,FACES,VERTICES) takes faces and vertices separately, rather...

User Review for Tail a continuously growing file (like tail -f filename)
- required fields
     

Please enter text on the image