Home | Mirror | Search

4. pipes (FIFOs)

create a pipes

$ mkfifo /tmp/pipe
$ mkfifo -m 0644 /tmp/pipe

$ mknod /tmp/pipe p
		

let's see it

$ ls -l /tmp/piple
prw-r--r-- 1 neo neo 0 2009-03-13 14:40 /tmp/piple
		

remove a pipes

rm /tmp/pipe
		

using it

standing by pipe

$ cat /tmp/pipe
		

push string to pipe

$ echo hello world > /tmp/pipe
		

fetch string from /tmp/pipe

$ cat /tmp/piple
hello world
		
comments powered by Disqus