Jul 082011
 

tuxIn a former article I’ve talked about script, to record a shell session from a terminal and a comment contained “ttyrec > script”

So what’s ttryrec ?




From the official page:

ttyrec is a tty recorder.
Recorded data can be played back with the included ttyplay command.
ttyrec is just a derivative of script command for recording timing information with microsecond accuracy as well.
It can record emacs -nw, vi, lynx, or any programs running on tty.

Ttyrec invokes a shell and records the session until the shell exits. Recorded data can be played back with ttyplay. If the argument file is given, the session will be recorded in that file. Otherwise, ttyrecord is used as default.

Installation

ttyrec it’s available in Ubuntu and Debian so you can install it with:

aptitude install ttyrec

Basic usage

 ttyrec [-a] [-u] [-e command] [file]

The -a options is used to “append” the output to “file” and the option -e is used to specify the command to invoke when ttyrec starts.

Example

ttyrec

You’ll not notice anything, and you can work normally, but when you’ll exit from that shell you’ll have a new ttryrecord file with your session recorded there.

Playback

In the package there is also the command ttyplay a player of the tty session recorded by ttyrec.
an interesting option of ttyplay it’s “-s n”, multiple the playing speed by n (default is 1).

Example of ttyplay with improved speed:

Conclusions

I must admd that ttyrec it’s really easy to use and could be useful to register your tutorial or to save a tty session..or why not, your best Nethack performance.



Popular Posts:

flattr this!

 Leave a Reply

(required)

(required)


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>