I got the following explanation from isp-linux mailing list and would like to share.
regards sanjay ========================== That's how FIFOs work. Data written to them isn't put on disk; it's immediately read by any other process that is currently reading from the FIFO. If no other process is reading from the FIFO, the writing program blocks (i.e., waits) until that happens. This is what happened to you when you ran 'cat'. Look up "FIFO" in your copy of Programming Perl for a good explanation. ==================== ----- Original Message ----- From: "Binand Raj S." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 11:51 AM Subject: Re: [LIH] Can't write into FIFO(named pipe) file > On Saturday 16 February 2002 11:49 am, sanjay wrote: > > I have created a FIFO file by giving the following command: > > > > mkfifo /var/run/test --mode=660 > > > > But, I am not able to write into it through program or even through command > > line. > > Writing to a fifo, opened without O_NBLOCK, and with SIGPIPE ignored, results > in this behavior. Do a cat /var/run/test on another tty and see how the write > succeeds. ;-) > > Binand _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
