RE: Tail -f and select - Again
[email protected] ("Mark Borghardt") Tue, 22 Jan 2002 12:05:15 -0700
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
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