shell question

Ben Pfaff pfaffben@msu.edu
30 Jul 2001 15:56:32 -0400


"Matthew Ryan Fuerst" <fuerstma@pilot.msu.edu> writes:

> Is there a way to log the output of a command into a file as well as to the
> terminal?
> 
> I am planning on building apache from source, and want to capture the output to
> afile for future reference, but would also like to see it on the screen..

I use Emacs' shell-mode (or compile-mode) for this.  Start up
emacs, type `M-x shell-mode RET'[1], and you're in a shell with
an infinite history that you can review, save to a file, etc.

[1] That's Alt+X followed by the literal characters "shell-mode",
then Enter, written in Emacs-speak.