OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

Setting Up A Named Pipe

First, we must create a named pipe. This is done using the mkfifo command:


[me@linuxbox ~]$ mkfifo pipe1

[me@linuxbox ~]$ ls -l pipe1

prw-r--r-- 1 me me 0 2009-07-17 06:41 pipe1

[me@linuxbox ~]$ mkfifo pipe1

[me@linuxbox ~]$ ls -l pipe1

prw-r--r-- 1 me me 0 2009-07-17 06:41 pipe1


Here we use mkfifo to create a named pipe called pipe1. Using ls, we examine the file and see that the first letter in the attributes field is “p”, indicating that it is a named pipe.


Top OS Cloud Computing at OnWorks: