Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:text': 0.05; 'subject:file': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:How': 0.10; 'wrote': 0.14; 'windows': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'red,': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'import': 0.22; 'shell': 0.22; 'header :User-Agent:1': 0.23; 'skip:n 60': 0.24; 'looks': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'unix': 0.29; 'skip:# 10': 0.33; 'but': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'skip:o 30': 0.61; "you've": 0.63; 'received:2': 0.84; 'subject:read': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: How to streamingly read text file and display whenever updated text Date: Sat, 05 Oct 2013 09:14:48 +0100 References: <04ee91f9-1cbf-4364-bca3-da25aa4db45f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-207-126.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380960909 news.xs4all.nl 15927 [2001:888:2000:d::a6]:58140 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56176 On 05/10/2013 09:06, James Harris wrote: > wrote in message > news:04ee91f9-1cbf-4364-bca3-da25aa4db45f@googlegroups.com... >> >> >> #!/usr/bin/python >> import time >> f = open('/home/martin/Downloads/a.txt') > > Looks like you are on Unix so you can do this from the shell > > tail -F /home/martin/Downloads/a.txt > > James > > Tail also works on Windows if you've unxutils installed :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence