On 2009-12-21, Rick wrote:
> I am to write script which is to read data from log file which
> resides on remote host. It's a simple text file but grows to
> couple of MBytes. I want to do ssh connection to remote, and
> run 'tail -f _some_file_' command to read only new coming data
> and process
Hi,
I am to write script which is to read data from log file which resides on
remote host. It's a simple text file but grows to couple of MBytes. I want to
do ssh connection to remote, and run 'tail -f _some_file_' command to read only
new coming data and process them in the loop. The problem is
I figured out the problem, fix involves modifying one of the lines in
the original program (from
http://groups.google.com/group/comp.lang.python/msg/de40b36c6f0c53cc)
to:
raw_lflag = self.lflag & ~(termios.ICANON|termios.ECHO|termios.ISIG)
(termios.ISIG was added)
Lorin
--
http://mail.python.o
Hi all,
I've written a Python script with functionality similar to the Unix
"script" program, which keeps a record of shell commands issued (I
capture some additional stuff like timestamps). The code is borrowed
largely from
http://groups.google.com/group/comp.lang.python/msg/de40b36c6f0c53cc
Any