請問讓程式一直執行的問題 - Linux

By Zanna
at 2012-09-05T01:23
at 2012-09-05T01:23
Table of Contents
請問大大
小弟近日剛接觸linux,目前在使用CentOS 6.3
想請問弟抓了一隻程式 叫做bonnie++
但是我想要讓他一直跑..
所以 我照他的基本參數
例如:
bonnie++ -d test_folder -u root -x 1000 | bon_csv2_html>result.html
我想要讓bonnie++這隻程式一直跑,假設我設定1000次.
我發現他一定要跑完1000次後,才會把結果丟到result.html.
但是,我可能會需要提前終止它,可能跑到800次就會被我停掉,如果我按ctrl+c
則所有結果都沒了...result.html也沒有資料.
請問有沒有批次檔的做法..就是讓這程式每跑一次就透過bon_csv2_html輸出結果
到result.html,然後程式再繼續跑下一次,之後的每一次都會把結果接在result.html
如此,我之後若要提前終止程式,頂多損失當時那一次的資料而已.之前的資料都已
存入result.html了~ 請問要怎樣達成這樣的動作呢 ?
不好意思~ 謝謝大家!!
--
Tags:
Linux
All Comments

By Andy
at 2012-09-05T19:20
at 2012-09-05T19:20

By Leila
at 2012-09-06T06:12
at 2012-09-06T06:12

By Ursula
at 2012-09-09T18:15
at 2012-09-09T18:15

By Ingrid
at 2012-09-11T03:07
at 2012-09-11T03:07

By Elvira
at 2012-09-14T15:32
at 2012-09-14T15:32

By Andy
at 2012-09-18T19:23
at 2012-09-18T19:23
Related Posts
Lubuntu為何不是LTS?

By Bennie
at 2012-09-04T13:12
at 2012-09-04T13:12
ubuntu裝很多軟件會不會讓電腦變慢?

By Kyle
at 2012-09-04T10:14
at 2012-09-04T10:14
HackingThursday 固定聚會 (2012-09-06)

By Jacky
at 2012-09-04T08:55
at 2012-09-04T08:55
AceLan - Qt for Android

By Xanthe
at 2012-09-03T23:49
at 2012-09-03T23:49
Lubuntu為何不是LTS?

By David
at 2012-09-03T22:43
at 2012-09-03T22:43