$file=File::Tail->new(name=>$filename, maxinterval=>5, interval=>1, tail=>-1, ignore_nonexistant => 1, errmode=>\&do_exit);