[Newbies] reading from named pipes

Chris Dawson xrdawson at gmail.com
Thu May 22 17:08:35 UTC 2008


Hi there,

I'm trying to read from a named pipe.  I'm on Linux (Ubuntu 8.04).

   - I created the pipe using mkfifo
   - I can write to it, and when I cat the pipe within another terminal I
   see the output.
   - I've tried using various combinations of FileStream,
   OSProcess-ExternalPipe and OSProcess-AsyncFileReadStream.
   - For example, I used this code:  pipe := OSPipe new. file := FileStream
      fileNamed: '/my/named/pipe'. pipe reader: file. foo := pipe
upToEndOfFile.
      It just hangs when I do this.

Any suggestions?

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080522/a16020c2/attachment.htm


More information about the Beginners mailing list