Other Help Topics :: Xterm output to file
It seems like the answer to this should be in the forums somewhere but I've just searched for 15 minutes without success...
I would like to see all of the screen messages when using an xterm root box - how do I either increase the size of the screen buffer (so I can scroll back and look at the output) or output everything that appears on the screen to a file?
Note that I tried -sl 1000 (to get a 1000 line buffer) but this didn't seem to work.
The -sl option *should* work....not sure why it didn't.
You can output everything from the active terminal using the script command:
Code Sample |
script filename |
Everything printed to the terminal after this will be saved to filename.
Ctrl+d will end the script session.
That did the trick - thanks
original here.