分页: 1 / 1

請教一個 Zenity shell 進度表示問題...

发表于 : 2010-07-11 15:39
iexx
各位前輩大家好...
晚輩在寫一個視窗腳本時.希望可以在RAID1環境下重新安裝新硬碟時,當 mdadm --add /dev/mdX /dev/sdX 時以視窗表示 ...

zenity --list --title "測試" --text "<big>各磁區鏡射進度..</big>" --column "磁碟編號" --column "進度" "磁區 1 " "百分比" "磁區 2 " "百分比"

代替 watch cat /proc/mdstat 這個終端機的訊息提示...

晚輩想要把 <百分比> 的部份每2秒顯示它的進度..請問要如何實現呢......
還是有其它的技術文件可以查詢呢???

Re: 請教一個 Zenity shell 進度表示問題...

发表于 : 2010-07-12 11:59
xiooli
这个有难度吧,试试用 tcl/tk 写个。

Re: 請教一個 Zenity shell 進度表示問題...

发表于 : 2010-07-12 12:08
eexpress
这至少要多线程的,取得数据吧。
换个perl写吧。