hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hello all!
I wrote a C program that inserts log messages from Linux syslog to mysql database. Now I wish to implement in Perl programs similar to Linux tail and less. tail for monitoring messages from now till Ctrl-c and less for viewing messages from given time to given time.
1. What Perl modules are recommended here?
2. Once I have a good module less seems not to complicated to implement (just quering the database and piping into Linux less). tail seems the real problem. Anyone has an idea how to do this? or is there something similar already doing that?
Thanks
I wrote a C program that inserts log messages from Linux syslog to mysql database. Now I wish to implement in Perl programs similar to Linux tail and less. tail for monitoring messages from now till Ctrl-c and less for viewing messages from given time to given time.
1. What Perl modules are recommended here?
2. Once I have a good module less seems not to complicated to implement (just quering the database and piping into Linux less). tail seems the real problem. Anyone has an idea how to do this? or is there something similar already doing that?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mysql and tail
by matthewb (Curate) on Oct 16, 2003 at 06:50 UTC | |
Re: Mysql and tail
by Taulmarill (Deacon) on Oct 16, 2003 at 08:44 UTC | |
Re: Mysql and tail
by sauoq (Abbot) on Oct 16, 2003 at 07:32 UTC | |
Re: Mysql and tail
by hydo (Monk) on Oct 16, 2003 at 12:45 UTC | |
Re: Mysql and tail
by Abigail-II (Bishop) on Oct 16, 2003 at 08:22 UTC |
Back to
Seekers of Perl Wisdom