R
Rory Campbell-Lange
I'm stumped. I'm piping some content to a python program, but then want
the python program to prompt me for an answer. It goes on reading
the pipe and gives a "EOFError: EOF when reading a line".
eg:
#!/usr/bin/python
import sys
text = sys.stdin.read()
sel = raw_input('Selection? : ')
Selection? : Traceback (most recent call last):
File "/tmp/z.py", line 5, in ?
sel = raw_input('Selection? : ')
EOFError: EOF when reading a line
Advice much appreciated.
Rory
the python program to prompt me for an answer. It goes on reading
the pipe and gives a "EOFError: EOF when reading a line".
eg:
#!/usr/bin/python
import sys
text = sys.stdin.read()
sel = raw_input('Selection? : ')
Selection? : Traceback (most recent call last):
File "/tmp/z.py", line 5, in ?
sel = raw_input('Selection? : ')
EOFError: EOF when reading a line
Advice much appreciated.
Rory