LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Use of Named Pipes (https://www.linuxquestions.org/questions/linux-software-2/use-of-named-pipes-76338/)

casey0999 07-27-2003 09:55 AM

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

Corin 07-28-2003 12:32 PM

How are you going to keep the processes from trying to all write to the pipe at the same time?

casey0999 07-28-2003 12:36 PM

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!

Corin 08-03-2003 01:21 PM

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.