On Wed, Mar 06, 2002 at 11:33:30AM +1300, Andrew Turner wrote:
> > > try "tail -f > /var/log/messages | grep sshd > /dev/tty2"
> >
> > s/-f/--follow=name/
> I ment tail -f /var/log/messages | grep sshd > /dev/tty2
Yes, and I meant "--follow=name" for a reason. hence why I suggested
reading the manpage. :) I will admit that I actually didnt catch your
extra ">" in there :)
for the lazy folks:
With --follow (-f), tail defaults to following the file
descriptor, which means that even if a tail'ed file is
renamed, tail will continue to track its end. This
default behavior is not desirable when you really want to
track the actual name of the file, not the file descriptor
(e.g., log rotation). Use --follow=name in that case.
That causes tail to track the named file by reopening it
periodically to see if it has been removed and recreated
by some other program.
Mike.
--
Michael Beattie <[EMAIL PROTECTED]>
You know you've landed gear-up when it takes full power to taxi.