From Wiki

Jump to: navigation, search

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

//starts a new session and starts logging it. If no parameters are given, it logs by default to: ~/typescript
script filenameout

//exit will exit the script session

Advanced Usage

script -t 2>~/filename.time -a ~/filename.script
scriptreplay ~/filename.time ~/filename.script


"4.5.1 Recording the session" on

Personal tools