What I am trying to do is run python in a terminal window and redirect it's stdin from a named pipe. Then I write to the named pipe in another terminal and have that command execute on python.
mkfifo p1 python < p1
echo -n "print \"Hello World\"" > p1
What happens is - python prints
Hello World and exits. What I want to do is keep python running to take a next command. How do I do this in the shell?