pipefs
pipefs [ -s srvname ] [ -m mntpoint ] [ -p pmod ] command [ arg ... ]
pipefs
pipes between two different name spaces.pipefs
.pipefs /bin/foowill create
/srv/foo
with permission mode 666
.
term% pipefs tr a-z A-Z term% mount /srv/pipefs /n/temp term% echo blah >>/n/temp/data BLAH term% echo hellow >>/n/temp/data HELLOW term%This example is worthless because two processes are in the same name space.
In name space A:
pipefs /bin/foowill create /srv/pipefs
In name space B:
mount /srv/pipefs /n/pipefs echo 'Hello world' > /n/pipefs/datawill invoke "
/bin/foo
" and the data "Hello world
" will be read by "/bin/foo
" and enables "/bin/foo
" to do something in accordance with the input.
Reading output has some problems:
You should design "/bin/boo
" to do only small tasks.
http://plan9.aichi-u.ac.jp/netlib/pipefs