[Gambas-user] Pipe doesn't receive contents
Rolf-Werner Eilert
eilert-sprachen at ...221...
Fri May 7 12:17:00 CEST 2010
Am 07.05.2010 11:33, schrieb Rolf Schmidt:
> 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
>
Errr - but this is exactly the proposal from the documentation. It
should be updated if it's wrong
Ok, I'll try to find another way...
Rolf-Werner ;-)
More information about the User
mailing list