socalheel has asked for the wisdom of the Perl Monks concerning the following question:
i am a complete novice with perl, i am trying so hard to learn this language but i am struggling with perl (a lot really).
i developed a bash script that would continuously read a log file, search for a particular string, and if it found the string, email a notification to the admins and restart a service.
how exactly could i do this in perl?
specifically, i want to tail /var/log/ldap.log and grep for connection_input: conn=11
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: guidance with a realtime log reader
by toolic (Bishop) on Aug 29, 2013 at 17:27 UTC | |
|
Re: guidance with a realtime log reader
by thewebsi (Scribe) on Aug 29, 2013 at 19:32 UTC | |
|
Re: guidance with a realtime log reader
by rodion (Chaplain) on Aug 29, 2013 at 21:42 UTC | |
by socalheel (Initiate) on Aug 30, 2013 at 16:36 UTC | |
|
Re: guidance with a realtime log reader
by pemungkah (Priest) on Aug 30, 2013 at 21:04 UTC |