Script Record and Replay

2017-09-18  本文已影响0人  lucientlau

script and scriptreplay

The following command start script record

$ script -t 2> timing.log -a output.session

Then type the command u want to record like

$ ls
...
...
...
$ exit

Input exit command to stop record.
Type the command below to replay the script.

$ scriptreplay timing.log output.session

Real Time Command Display

$ mkfifo scriptfifo   # make a pipe
$  cat scriptfifo
$ script -f scriptfifo

After the test use unlink scriptfifo to close the pipe.

上一篇下一篇

猜你喜欢

热点阅读