Can someone post a simple example of using named pipes in Bash in Linux?
Terminal 1:
$ mknod new_named_pipe p
$ echo 123 > new_named_pipe
Terminal 2:
$ cat new_named_pipe
$ 123
$
new_named_pipe it displays the information and blocking stopsNamed pipes are used everywhere in Linux, most of the char and block files we see during ls -l command are char and block pipes (All of these reside at /dev).
These pipes can be blocking and non-blocking, and the main advantage is these provides the simplest way for IPC.