Thanks for the prompt reply.
I did a bit more testing and think I found an alternate and I think better
solution.
Instead of just opening the file I:
$pid = open(DATIN,"tail +0 -f $datafile);
and then instead of closing the file I:
system("kill $pid");
I tested it and it works.
Are there any pitfalls with this strategy?
Mark
-----Original Message-----
From: Jochen Stenzel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 10:34 AM
To: Mark Borghardt
Cc: '[EMAIL PROTECTED]'
Subject: Re: Tail -f and select - Again
Hello, Mark,
> What I want to do is read data from a growing file (tail -f) until a
special
> record arrives, at which point I would like to close the file and reopen
> another one repeating the process.
there is a module called Event::File which implements tail -f the Event way.
Jochen