[Gambas-user] Pipe doesn't receive contents
Rolf Schmidt
rolf.frogs at ...221...
Fri May 7 11:33:38 CEST 2010
Hello Rolf-Werner
> DIM hFile AS File
> DIM sLine AS String
>
> hFile = PIPE "/tmp/FIFO1" FOR INPUT
>
> PRINT "Now let's start:"
>
> WHILE NOT Eof(hFile)
> LINE INPUT #hFile, sLine
> PRINT sLine
> WEND
>
> PRINT "That's it."
>
You can't wait until EOF on a named pipe! Also a 'tail' on a named pipe will
never give you some data - but 'cat' do!
Just read and find another mechanism to stop reading.
Hope that helps
Rolf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20100507/686cd42c/attachment.sig>
More information about the User
mailing list