LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-27-2003, 09:55 AM   #1
casey0999
LQ Newbie
 
Registered: Jul 2003
Location: California & London
Posts: 15

Rep: Reputation: 0
Question 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
 
Old 07-28-2003, 12:32 PM   #2
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 30
How are you going to keep the processes from trying to all write to the pipe at the same time?
 
Old 07-28-2003, 12:36 PM   #3
casey0999
LQ Newbie
 
Registered: Jul 2003
Location: California & London
Posts: 15

Original Poster
Rep: Reputation: 0
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!
 
Old 08-03-2003, 01:21 PM   #4
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about pipes kpachopoulos Programming 1 10-15-2005 12:37 PM
Question regarding pipes alltime Programming 3 04-15-2005 07:54 PM
pipes on Suse AdamTheFirst Linux - Software 1 11-04-2004 02:07 PM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM


All times are GMT -5. The time now is 09:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration