Re: Python's tail -f implementation for remote files

2008-05-28 Thread Dikkie Dik
asdf wrote: Basically what i want to do is to read a file that is being constantly appended to but which is located on a remote server. I found this for doing BASH's tail -f in python: import os tailoutputfile = os.popen('tail -f syslog') while 1: line = tailoutputfile.readline() if len(

Python's tail -f implementation for remote files

2008-05-28 Thread asdf
Basically what i want to do is to read a file that is being constantly appended to but which is located on a remote server. I found this for doing BASH's tail -f in python: import os tailoutputfile = os.popen('tail -f syslog') while 1: line = tailoutputfile.readline() if len(line)==0: #