I am trying to record all output from a program by using script. Having recently
learned a little shell programming, I though that this would be a good chance to
combine two commands into one shell script:
script -a myscriptfile
The problem is that script seems to start a subshell and I never get to the run
program line until I type exit to leave the script subshell.
I would use tee except that the program makes heavy use of buffering so I think I can
not afford a pipe.
Is there any way to call record a session of a program without having to type two
commands? I thought perl maybe, but to learn enough may take a while.