Thanks for your response.
I was going by this thread,
http://mail.python.org/pipermail/tutor/2009-January/066101.html makes
you wonder even if its possible.
I will try your first solution by doing mkfifo on the files.
On Thu, Sep 9, 2010 at 9:19 PM, Alain Ketterlin
wrote:
> Mag Gam writes:
Mag Gam writes:
> I have 3 files which are constantly being updated therefore I use tail
> -f /var/log/file1, tail -f /var/log/file2, and tail -f /var/log/file3
>
> For 1 file I am able to manage by
> tail -f /var/log/file1 | python prog.py
>
> prog.py looks like this:
> f=sys.stdin
> for line in
I have 3 files which are constantly being updated therefore I use tail
-f /var/log/file1, tail -f /var/log/file2, and tail -f /var/log/file3
For 1 file I am able to manage by
tail -f /var/log/file1 | python prog.py
prog.py looks like this:
f=sys.stdin
for line in f:
print line
But how can I ge