script
script
Terminal logging
Submitted by DenRaf on Tue, 07/24/2007 - 20:01
Sometimes you want to log everything what happens in your terminal.
If you use konsole or gnome-terminal, you can change history or scroll settings, but you don't have output to a file.
There are a few simple tools for just doing that, but always with a bit difference:
Like tee. Explained here by my colleague raskas. This is nice, but you aren't able to do manual input.
Therefore you use script. You just create a log file of your terminal sessions, even typo's :) if you log a shell script where manual input is required.
Start logging with:
script [-a] [-c COMMAND] [-f] [-q] [-t] [file]
End logging with:
exit

Read log file:
cat




Recent comments
1 week 5 days ago
3 weeks 4 days ago
4 weeks 1 day ago
5 weeks 2 days ago
5 weeks 4 days ago
10 weeks 3 days ago
10 weeks 5 days ago
10 weeks 5 days ago
11 weeks 12 hours ago
11 weeks 2 days ago