I have an interactive terminal program, that accepts stdin (telnet for example).
I want to send it some input before interacting with it, like this:
echo "Hello" | telnet somewhere 123
But that only sends in
Hello and kills telnet afterwards. How can I keep telnet alive and route input to it?