Use of Named Pipes
Hello-
I'm using RedHat Linux 9. Have a question on the appropriate use of named pipes. I have a number of small applications that come and go - they are related to servicing telephone calls on up to 120 lines. I want to create a logging mechanism so that each of these processes (up to 120 can exist at once) can write to a common logging mechanism. I'm accomplishing this now by using a mySQL database, but I want to create an efficient mechanism that also passes a transaction list to a remote system (and I'd rather not use a DB function for this). Here's my question: Can I have multiple processes writing to the same named pipe? My idea is to have a single program that reads the pipe and passes the transactions efficiently to the other system. Thanks in advance, Scott |
How are you going to keep the processes from trying to all write to the pipe at the same time?
|
I guess that's the question: Do Linux named pipes support shared write access?
I'm thinking that maybe I should consider using sockets for this task! |
If you do not already know about it, then maybe you should have a look at this package to see if it helps you in doing what you require.
http://freshmeat.net/projects/netpip...50%2C253%2C861 |
All times are GMT -5. The time now is 11:05 PM. |