Click to See Complete Forum and Search --> : Forgot command! I wanna log my xterm session to a file!


njcajun
12-22-2000, 06:03 PM
Can someone refresh my memory? Was it 'tee' that did it? I want to be able to inspect my xterm session, and I'd really like to set it up so that, automatically, ALL sessions, telnet, xterm - basically, anything on the command line will be logged to a HUGE file that I will back up onto my '98 box or something.

------------------
Build a system that even a fool can use, and only a fool will use it.

Strike
12-22-2000, 06:18 PM
Yes, tee (or multitee if you have it) will allow sending output to both a terminal AND a file. This might do it (I'm just stealing this from vim as how they log stuff to file and print to the screen when you do things like :make): 2>&1| tee (that's my :set shellpipe in vim)