Angerstein wrote:
> Hello there!
>
> I have a question regarding named pipes (mknod mypipe p).
>
> I have 2 programmes, one is not opensource nor programmed by me.
> The 2. programm is programmed by me.
>
> The 1. writes into a pipe.
> The 2. should read from the pipe.
>
> So far so good.
>
> The problem is if the first programm can�t write to the pipe it dies.
> So it dies when the pipe is a) full (size can�t be increased) or b)
> blocked.
I don't understand the question. The writer should only die if there is no
reader, not if the pipe is full (it should just block at that point). Since
your script is the reader, I don't see why the writer should have any
problem.
>
> With the newer Perl-Versions 5.6 and higher there is IO::Handle with
> getline. Which should theoretically work, but I don�t know if and how.
>
> With the old perl verion 5.00.5, i�m damed to use, there is no such
> modul, and I have no idea, after testing so much stuff, how it could
> work.
IO::Handle should run under 5.005.
But you can just open the fifo with a regular open():
open(FIFO, 'mypipe') or die $!;
while(<FIFO>) {
print;
}
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]