Recording & playback of terminal session

Here is a simple tip to record and playback a terminal session.It is done by command script and scriptreplay.
You will find it very useful in making good tutorials.

Recording:

$ script -t 2> timing.log -a output.session
now type your commands;
…..
…..
…..
$ exit
script command here takes two files as arguments ‘timing.log(stores timing information at which each commands are run)’ and ‘output.session(stores the output of the commands)’

Playback:

$ scriptreplay timing.log output.session

Note:
timing.log and output.session can be shared with anyone who wants to replay a terminal session in their terminal.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s