05-24-06 12:16 PM
akarui.tomodachi@gmail.com wrote:
> Fact:
> I have a server implementaion in Java and running on Solaris platform.
> That server generates continously all logs for events, exceptions and
> informations in a flat text file.
>
> Design idea:
> I like to implement a parser programme (say, process A), written in C,
> which will intermittently parse that generated log file and look for
> "exception". Once any "exception" is encountered (parsed) by process A,
> I like to send a SIGPIPE signal to another programme (say, process B,
> also written in C).
>
> Once process B receieves the SIGPIPE signal from process A, I'll
> generate a message of occurance of the exception on the console screen.
It could be done with a shell script. Something like this:
tail -f flat.text.file | grep -i exception | awk '{ system("pkill -PIPE
process_B_written_in_C") }'
[ Post a follow-up to this message ]
|