Re: Überwachen eines Log-Files

Ferdinand Ihringer <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo, 

 Am Freitag, 27. Januar 2006 12:19 schrieb Bastian Schern:
> wie schaffe ich es z.B. /var/log/messages zu überwachen und bei
> auftreten eines bestimmten Strings eine Aktion auszulösen?
>
> Am besten wäre es wenn ich dass mit einem Shell-Skript oder mit Perl
> machen könnte.
>
> Gibt es da eine einfache Möglichkeit?

In Perl:
man perlfaq5

Die Frage "How do I do a "tail -f" in perl?"

Ferdinand

-- 
Hey, I had to let awk be better at *something*...  :-)
             -- Larry Wall in <[email protected]>1

-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.