Robert Citek wrote:
> On Jan 30, 2006, at 9:44 AM, AgentM wrote:
> 
>>Also, see the "script" command which will record the terminal session
>>until you shut it off.
> 
> 
> And then there's the companion program, scriptreplay.  From the man  
> page:  "This program replays a typescript, using timing information  
> to ensure that output happens at the same speed as it originally  
> appeared when the script was recorded."
> 
> Here's a sample under Knoppix 4.0.2:
> 
> [EMAIL PROTECTED] script -t 2> my.script
> Script started, file is typescript
> [EMAIL PROTECTED] ps faux
>   ...
> [EMAIL PROTECTED] ls -la
>   ...
> [EMAIL PROTECTED] exit
> Script done, file is typescript
> [EMAIL PROTECTED] scriptreplay my.script
> 

The scriptreplay is usually missing (broken?) under Red Hat or Fedora
Core.  Still there as "replay" under Xandros.  It is a perl script.
You may have to use the "pod2man" command to create it's manpage and
move it to the appropriate system area for manpages.  Where you would
go to find the "replay" or "scriptreplay" file is unknown to me.

The my.script file is the timingfile and the name for the main stuff
captured is typescript.

Per the "replay" manpage:

 > replay timingfile [typescript [divisor]]

So I would try using something like:

example>$ script -t 2>timingfile -a scriptfile
example>$ ps faux
     ...
example>$ ls -la
     ...
example>$ exit
example>$ scriptreplay timingfile scriptfile

I have found that if I don't explicitly name your typescript with
the "-a" option that I either overwrite the typescript when I would
rather have saved it or simply get confused about which timingfile
goes with which typescript file.

stan r.
 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to