Solved

Named Pipes in Unix

Posted on 1998-12-08
1
866 Views
Last Modified: 2013-12-23
Under NT I have written code to use named pipes for interprocess and network communication. In Unix I know about anonymous pipes between processes on the same machine. Can I use named pipes in Unix?  How?
0
Comment
Question by:gumby119
1 Comment
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 80 total points
ID: 1582671
 Yes, named pipes exist in Unix and they are often called FIFOs.
  Create a named pipe using the mknod command or with the mkfifo function.  To create a named pipe called FRED do this,

mknod FRED p

You can modify the pipe's permissions like you do any other file.  The main advantage of named pipes is that they are bi-directional, either side canread or write.  You can manipulate the pipe like you do an anonymous pipe.  Note that the kernel does not distinguish between who is reading and who is writing so a process can actually read back what it wrote.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now