Answers:
您可以启动gnu屏幕并使用日志功能。我不知道有什么可以为ncurses应用程序(例如top)提供非常好的日志。
人屏
log [on|off]
Start/stop writing output of the current window to a file "screenlog.n"
in the window's default directory, where n is the number of the current
window. This filename can be changed with the `logfile' command. ...
logfile filename
logfile flush secs
Defines the name the log files will get. The default is "screenlog.%n".
The second form changes the number of seconds screen will wait before
flushing the logfile buffer to the file-system. The default value is 10
seconds.
TTYrec可能是最简单的解决方案。您可以使用原始的:
http://0xcc.net/ttyrec/index.html.en
或自己动手:
http://en.wikipedia.org/wiki/Ttyrec
或者,您可以得到所有旧学校和| 将所有命令发送到tee command.timestamp.tee