|
|
SIGPIPE and C question for Solaris
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 ?
|
|
0
|
|
|
|
Reply
|
akarui.tomodachi (29)
|
5/24/2006 5:19:53 AM |
|
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") }'
|
|
0
|
|
|
|
Reply
|
Maxim
|
5/24/2006 7:05:26 AM
|
|
|
1 Replies
372 Views
(page loaded in 0.048 seconds)
Similiar Articles: Broken pipe on Solaris 8 - comp.unix.solarissigaction(SIGPIPE, &oact, NULL); Is there another way on solaris I could disable SIGPIPE? ... pipe" on my system (solaris) as well, but why would this make my question ... Question about resolve names into IP addresses - comp.unix.solaris ...SIGPIPE and C question for Solaris - comp.unix.programmer ... Question about resolve names into IP addresses - comp.unix.solaris ... SIGPIPE and C question for Solaris ... NFS mount permission denied - Solaris 10 servers (newbie question ...NFS mount permission denied - Solaris 10 servers (newbie question ... We are trying to NFS mount a file system securely from serverA to serverB and to serverC. Which is better to use from C++ code ioctl or ifconfig to set ...On Solaris, ioctl() calls which are documented in manpages will not go ... want to set the requested floating IP from my C++ code. ... SIGPIPE and C question for Solaris ... How to implement exception handling in linux assembly? - comp.lang ...How do I check the existence of a file programmatically in C ... How to implement exception handling in linux assembly? - comp.lang ... SIGPIPE and C question for Solaris ... Interview questions and answers - comp.unix.solarisHi Friends can anyone give me the interview questions and answers for solaris os in pdf format Please Thanx in advance ... Question from AIX guy re language/date settings on Solaris - comp ...John Leslie <johnleslie@madasafish.com> wrote: > My question is, what controls character set/language and date format > settings on Solaris? > > Does Solaris use ... (BSM) Auditing Configuration Question - comp.unix.solaris ...Question: C2 Security Configuration for general Unix and Solaris ... solaris, Question: C2 Security Configuration for general Unix and Solaris/Trusted Solaris (Auditing) ... Jumpstart Question on Sol10 - comp.unix.solarisSolaris 10 zone and postfix - comp.unix.solaris jumpstart and hostid/sysinit problem - comp.unix.solaris ... Jumpstart Question on Sol10 - comp.unix.solaris Solaris 10 ... lockf() question - comp.unix.solarisGreetings all, I had a question about lockf(), specifically as implemented in Solaris 10. Forgive me if this is not posted in the correct newsgroup. ... c - How to prevent SIGPIPEs (or handle them properly) - Stack OverflowAsk Question ... want a global signal handler for SIGPIPE. On most systems, (assuming you are using C ... I described possible solution for Solaris ... BROKEN PIPE: broken, pipe, sigpipe - Experts Exchange - Your ...I want to catch the BROKEN PIPE signal (SIGPIPE). ... This question has been solved and asker verified All ... On Solaris system there was the sighold() and ... 7/24/2012 7:15:24 AM
|
|
|
|
|
|
|
|
|