On 1/14/06, Jeff Pang <[EMAIL PROTECTED]> wrote:
> Thanks for Adriano.I have tried the way that mentioned by you,and  found it's 
> no use for me.
> should the '-F' option  have no effect for symlinks maybe?
>

Well, that way would be easier if it worked. But I think with some
extra logic you can do it with help of the Perl builtin "readlink",
which is able to give you the filename the symbolic link points to.
Probably something can be written that checks to see if the link
changed or not.

Surely there's a CPAN module out there to help you do this. I also
made a few hasty tests, and if you got hard links rather symbolic
ones, it looks like "tail -F" would do the magic without hassle.

Cheers,
Adriano.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to