Perhaps it should have been the following? :

1:
   stdin=os.popen('tail -f somefile')
2:    logline=re.compile('(.*?).*?- - \[(.*?)\] "(.*?) (.*?)" (.*?) (.*?)"(.*?)" (.*?)".*')
3:    a=stdin.readline()
4:    print a
5:    while a:
6:        g=logline.search(a)
7:        if not g: continue
8:        a=stdin.readline()


Regards,
Arthur

Reply via email to