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
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
PostgreSQL Data Access Components 4.4
Database Workbench Pro 5.6.4
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
ATN Site Builder 3.0
ATN Resume Finder 2.0
IBDAC 6.4
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
The C# PDF Library 1.0
A-star Shortest Path Algorithm
HTMLPad 2018 15.5
TdsPrinter 1.8
Aglowsoft SQL Query Tools 8.2
Top Rated
VisualNEO Web 2018.12.15
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
ADO.NET Provider for ExactTarget 1.0
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: 9
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: 9



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