(I looked everywhere for this, perhaps my googling skill is off today)
I have a program that requires a handful of initialization cmds from stdin (and not through arguments). It'd be nice to move those commands into a script so when the script completes I can start keying the real work. So something like:
cat initcmds.txt | myprogram.exe
the problem is that the program (child process) terminates after receiving EOF at the end of initcmds.txt. How do you do this? (Bash, Korn, cmd.exe, csh, all good)