script、scriptreplay

紀錄操作的步驟

script -t >~/action.time -a ~/action.typescript
scriptreplay ~/action.time ~/action.typescript 10

script -t  資料至 standanstandard error 或檔案
scriptreplay  第三個參數為播放速度的倍數

參考文章:

Is typescript for `script` command the same as TypeScript maintained by Microsoft? How to print using `ldr`?
How to Record and Replay Linux Terminal Sessions using ‘script’ and ‘scriptreplay’ Commands
script(1) – Linux man page

This entry was posted in 系統管理. Bookmark the permalink.