SIGPIPE and C question for Solaris
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > SIGPIPE and C question for Solaris




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    SIGPIPE and C question for Solaris  
akarui.tomodachi@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-24-06 06:20 AM

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.

Question:
1) Is this possible in Solaris unix ?






[ Post a follow-up to this message ]



    Re: SIGPIPE and C question for Solaris  
Maxim Yegorushkin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register