linux script 命令
生活随笔
收集整理的這篇文章主要介紹了
linux script 命令
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錄制腳本
$ script -t 2>time.file -a output.file
#開始錄制了
$ ls -al
1.c 2.c 3.c
#執行一個命令
$exit
#結束錄制
回放腳本
$ scriptreplay time.file output.file
#腳本將會自動回放
$ script -t 2>time.file -a output.file
#開始錄制了
$ ls -al
1.c 2.c 3.c
#執行一個命令
$exit
#結束錄制
回放腳本
$ scriptreplay time.file output.file
#腳本將會自動回放
總結
以上是生活随笔為你收集整理的linux script 命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQL Server游标的使用
- 下一篇: 使用正则表达式模拟读写INI文件