comint-append-output-to-file
comint-append-output-to-file is an interactive compiled Lisp function in `comint.el
'.
(comint-append-output-to-file FILENAME)
Append output from interpreter since last input to FILENAME.
Any prompt at the end of the output is not written.