ttyrpld [rusty colors]

 
Name > ttyreplay - realtime log file player
 
Synopsis >

ttyreplay [-F|-f] [-J time|-j packets] [-S factor] [-T] [-m msec] [-?|--help]

 
Description >

ttyreplay is the tool to see -- to replay -- what has been captured by (the Kernel module and) rpld. Give it any number of files you want to see again. Options apply to all files.

 
Options >
-F Live feed follow mode. Seek to the end of the file and tail-follow any new contents that are written to it. This does the same as `tail -f` does with normal text logfiles.
-J time Skim to time position before starting to play.
-S factor Plays the file back with a time warp of factor. 1.0 is normal time, 2.0 is twice as fast, 0.5 half speed, etc.
-T Shows (replays) the log without any delays. This can be used to generate a screen log like script or screen (rpl logfile without any packet headers, basically) for easy grepping.
-f Catch-up follow mode. Plays the file back from the start as usual and switches into -F mode when EOF is reached.
-j count Skim count packets before starting to play.
-m msec Set the maximum delay in milliseconds that will be executed between packets. This check is done after the -S option, so -m1000 -S2 will first crunch a delay by factor 2, and then see if it is more than 1 second.
 
Example files >

There is an example file I provided, you can watch it with bzip2 -cd Commenting_ovcorr.bz2 | ttyreplay /dev/stdin. It shows 1:1 (and in full color!) how I commented the nsleep_ovcorr() function. It is advisable to run it with speed factor 3.0 (-S option) and maximum delay 1 second (-m 1000), because in real-time, it takes approximately 35 minutes thanks to the idleness of the creator ;-)

 
See also > rpl(4), rpld(8)