Solved

Named Pipes in Unix

Posted on 1998-12-08
1
872 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

Suggested Solutions

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

831 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