I want to pass some data to a python script using echo and after that promote the user to input options. I am running through an EOFError which I think is happening since I read all data in sys.stdin. How do I fix this issue? Thanks!
code.py:
x = ''
for line in sys.stdin:
x += line
y = raw_input()
usage:
echo -e -n '1324' | ./code.py
error at raw_input():
EOFError: EOF when reading a line