I have a command line program that I'm passing redirected input to, and piping to a file:
./program < some_input_file > some_output_file
This obviously writes the output not including the redirected input. Is there some simple way to get a log of the program, including the redirected input that I've passed in?
I'm open to using an external program or script - I'm running this on bash/linux.
[EDIT]
I'm looking for a way to get the output interleaved - as if the program was run in a terminal, with the input file just typed in manually