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