I need to parse  dhcpd.leases to store data in mysql
    Olivier Nicole 
    on at cs.ait.ac.th
       
    Fri Jun 30 07:27:09 UTC 2006
    
    
  
> can read further records as they are added (like 
> "tail -f" does). You will need to watch for when 
> the file moves and becomes the backup file, at 
> which point you'll need to start over.
For which I would recommend File::Tail module in Perl, it reads lines
that are addded at the end of the file and reopen te file whenever it
is rotated (becomes a backup file).
Olivier
    
    
More information about the dhcp-users
mailing list