記錄輸出結果工具-script
今天轉到eygle的網站上,學到一個好用的工具script,可以將接下來所做的操作都記錄到一個叫typescript的檔案裡。
[root@xh root]# script
Script started, file is typescript
[root@xh root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 39G 5.6G 32G 16% /
/dev/sda1 99M 9.2M 85M 10% /boot
none 291M 0 291M 0% /dev/shm
[root@xh root]# ls
1.dbf anaconda-ks.cfg install.log log monitor.sh time.sh
1.sh dd.sh install.log.syslog log.txt Shareplex_Chk.sql typescript
[root@xh root]# su - oracle
[oracle@xh oracle]$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 26 17:10:25 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 88082676 bytes
Database Buffers 75497472 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@xh oracle]$ exit
logout
[root@xh root]# ls
1.dbf anaconda-ks.cfg install.log log monitor.sh time.sh
1.sh dd.sh install.log.syslog log.txt Shareplex_Chk.sql typescript
[root@xh root]# cat typescript
[root@xh root]# exit
exit
Script done, file is typescript
[root@xh root]# cat
爆好用~~~~
[@more@][root@xh root]# more typescript
Script started on Thu 26 Jun 2008 05:09:50 PM CST
[root@xh root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 39G 5.6G 32G 16% /
/dev/sda1 99M 9.2M 85M 10% /boot
none 291M 0 291M 0% /dev/shm
[root@xh root]# ls
1.dbf anaconda-ks.cfg install.log log monitor.sh
time.sh
1.sh dd.sh install.log.syslog log.txt Shareplex_Chk.sql
typescript
[root@xh root]# su - oracle
[oracle@xh oracle]$ sqlplus '/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 26 17:10:25 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 88082676 bytes
Database Buffers 75497472 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> select status from v$instance;
STATUS
------------
OPEN
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
[oracle@xh oracle]$ exit
logout
--More--(75%)
[root@xh root]# ls
1.dbf anaconda-ks.cfg install.log log monitor.sh
1;32mtime.sh84%)
1.sh dd.sh install.log.syslog log.txt Shareplex_Chk.sql
mtypescript(92%)
[root@xh root]# cat typescript
[root@xh root]# exit
exit
Script done on Thu 26 Jun 2008 05:11:40 PM CST
[root@xh root]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9533994/viewspace-1006163/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用Linux下script工具記錄Oracle輸出LinuxOracle
- MySQL的Explain結果輸出項解釋MySqlAI
- MySQL show status命令輸出結果詳解MySql
- 論資訊系統的定位--業務活動結果的記錄工具
- filebeat輸出結果到elasticsearch的多個索引Elasticsearch索引
- Go 多協程記錄執行結果Go
- mysql ,tidb sysbench 測試結果記錄MySqlTiDB
- LINUX中fdisk -l 輸出結果的解讀Linux
- MONGODB 最近測試結果的簡單記錄MongoDB
- sqlplus格式化輸出(輸出結果顯示在同一行)SQL
- 簡單的mysql儲存過程,輸出結果集MySql儲存過程
- VNPY 批量策略回測和統計結果的excel輸出Excel
- python 實現計算器功能 輸入字串,輸出相應結果Python字串
- 【Tips】獲取結果集中偶數行記錄
- Hexagon DSP系列記錄(五)——DSP LOG輸出Go
- version-script 控制 so的符號輸出符號
- 【執行計劃】格式化EXPLAIN PLAN的輸出結果AI
- 依據oracheck結果修改系統引數配置記錄
- python中如何判斷all函式輸出結果為true?Python函式
- 慢動作輸出 Linux 命令結果並用彩色顯示Linux
- 在sqlplus下格式化輸出查詢結果集SQL
- 工具記錄
- C#呼叫Windows CMD命令並,返回輸出結果或錯誤資訊C#Windows
- 各種UNIX平臺下vmstat與iostat輸出結果詳解iOS
- html靜態頁面迴圈輸出後臺結果,帶if判斷HTML
- linux-把終端輸出記錄到文字Linux
- MySQL 使用tee記錄語句和輸出日誌MySql
- navicat 匯出查詢結果
- mysql匯出查詢結果MySql
- 核心表AUTOTRACE結果出錯
- 京東雲環境搭建oracle rac詳細部署梳理(可信的結果輸出)Oracle
- ISNULL 兩種寫法,得到兩種結果,返回空記錄與nullNull
- MySQL查詢結果匯出方式總結MySql
- 讀取popen輸出結果時未截斷字串導致的命令列注入字串命令列
- 有時候一個程式的輸出結果就是像這樣不可思議
- 第13周-閱讀專案4-寫出下面程式的輸出結果
- Linux script 命令記錄(資料庫)操作步驟Linux資料庫
- MySQL執行計劃explain輸出列結果解析MySqlAI