Re: Tail -f and select - Again
[email protected] (Uri Guttman) Wed, 23 Jan 2002 13:10:48 -0500
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected].> |
>>>>> "MB" == Mark Borghardt <[email protected]> writes: first, please learn to quote properly and not top post. read these: http://www.btinternet.com/~chiba/sbox/topposters.html http://www.uwasa.fi/~ts/http/quote.html http://www.geocities.com/nnqweb/nquote.html MB> That said, I am wondering why nobody has suggested using select MB> and sysread. I would have thought that this would have been a MB> great way to solve the problem. I tried the following code with MB> no success: select always returns readable for disk files as they are always readable so select is meaningless on them. the only way to tail files is to poll them on a schedule and see if their size has changed (or inode modified, etc.). uri -- Uri Guttman ------ [email protected] -------- http://www.stemsystems.com -- Stem is an Open Source Network Development Toolkit and Application Suite - ----- Stem and Perl Development, Systems Architecture, Design and Coding ---- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org