Monitoring any changes in /var/log/messages to file

Sergiusz Michalski boss na sergenet.prv.pl
Pátek Červenec 11 13:04:55 CEST 2003


OK I coped with it by
tail -f /var/log/messages >> file

But my second question is still on top.

Sergiusz.

Użytkownik "Sergiusz Michalski" <boss na sergenet.prv.pl> napisał w wiadomości
news:belvu4$gpg$1 na atlantis.news.tpi.pl...
> Hi!
>
> Maybe you have any good idea how to detect any new changes maked in
> /var/log/messages and write it to new separate file. Any script???
>
> I've tried to use diff program but I need to have 2 files to compare so  I
> don't think that this is  an optional solution.
>
> Thanks for all advices.
>
> Serge M.
>
>
>
>
>
>
>




Další informace o konferenci Linux