script和scriptreplay命令在绝大多数GUN/linux发行版上都可以找到
script -t 2> timing.log -a output.sesion exit
scriptreplay timing.log output.session