Table of Contents
Script
= script :: How to Log or Record a SSH Terminal Session/Exerpt =
Copying and pasting text from putty into notepad (for use in an email for example) is less than ideal. Although screen can be setup to record/log a screen session, it cannot be done on the fly (immediately).
script is a very handy and simple tool which will log/record a SSH session when invoked.
Basic Usage
//Invoke: script //starts a new session and starts logging it. If no parameters are given, it logs by default to: ~/typescript //or script filenameout
//End: exit //exit will exit the script session
Advanced Usage
script -t 2>~/filename.time -a ~/filename.script scriptreplay ~/filename.time ~/filename.script
Source:
“4.5.1 Recording the session” on http://www.debian.org/releases/etch/i386/release-notes/ch-upgrading.en.html