D
Don W.
I wrote a program that would continuously dump the output of a file to
syslog, using File::Tail and Tie::Syslog. Problem is, after about two
days of operation, the program just stops tailing -- it's still
running, and if I strace it, I can see that the file is being
stat()ed, but no data is being sent across the wire to the syslog
server. If I restart the program, it starts tailing again.
Any clues? This is what I'm using for the File::Tail constructor:
my $tail = File::Tail->new(
'name' => $file,
'maxinterval' => '1'
);
I can't find anything in the man page that would explain this
behaviour, but it wouldn't be the first time I've RTFM and missed
something.
Thanks-in-advance!
syslog, using File::Tail and Tie::Syslog. Problem is, after about two
days of operation, the program just stops tailing -- it's still
running, and if I strace it, I can see that the file is being
stat()ed, but no data is being sent across the wire to the syslog
server. If I restart the program, it starts tailing again.
Any clues? This is what I'm using for the File::Tail constructor:
my $tail = File::Tail->new(
'name' => $file,
'maxinterval' => '1'
);
I can't find anything in the man page that would explain this
behaviour, but it wouldn't be the first time I've RTFM and missed
something.
Thanks-in-advance!