The typical way of putting a file's contents on stdin is as follows:

./command.sh < myfile

This puts all the contents of myfile on stdin and then sends the eof as well. I want to put the contents on stdin without adding the EOF.

For various interactive programs, I wish to begin the program with a sequence of commands, but then continue to interact with the program. If the eof is not sent, the program would wait for more input, which I could then type interactively.

Is this possible in bash? My current solution is to throw the contents on the clipboard and then just paste them. Is there a better way of doing this?

Edit
Report