On 24/06/07, Erez D <[EMAIL PROTECTED]> wrote:
AFAIK, pipes does not work across different hosts ...
Yeh, it would be a bit like doing "mknod b 3 66" on an NFS mounted filesystem and expect to be able to access the raw disk partition over the net. On 6/24/07, Maxim Veksler <[EMAIL PROTECTED]> wrote:
> Hello list, > > I'm trying to make an named pipe using mkfifo and pass data in it, > over nfs exported directory. > > host1> cd /opt/REAL11/Content/ > host1> mkfifo npipe > host1> cat /dev/urandom > /opt/REAL11/Content/npipe > > Then I mount this directory on host2 and do > host2> cat npipe > > This does not work. Any ideas why ?
Named pipes are sort of a name for an internal kernel buffer so when you "write" to it the data actually ends up in the kernel's memory and there is no way (short of NFS adding support for it, maybe) for the kernel to transfer that information to the kernel of the other host. What are you trying to achieve with this trick? You can, for instance, connect two separate named pipes through an ssh tunnel or netcat. --Amos
