script限時間的重複執行...? - Linux

By Rae
at 2011-05-26T17:45
at 2011-05-26T17:45
Table of Contents
想問一下
我有c執行檔 out 會產生output
這個c 用到亂數 , 產生檔案時有的會執行很久
我想執行時 超過30s秒的時候 exit掉 再重新執行一次
這該怎麼寫script呢?
#!/bin/sh
while(?)
do
?
./out
if(?)
done
--
我有c執行檔 out 會產生output
這個c 用到亂數 , 產生檔案時有的會執行很久
我想執行時 超過30s秒的時候 exit掉 再重新執行一次
這該怎麼寫script呢?
#!/bin/sh
while(?)
do
?
./out
if(?)
done
--
Tags:
Linux
All Comments

By Leila
at 2011-05-31T06:02
at 2011-05-31T06:02

By Margaret
at 2011-06-01T00:08
at 2011-06-01T00:08

By Franklin
at 2011-06-04T21:51
at 2011-06-04T21:51

By Barb Cronin
at 2011-06-06T10:41
at 2011-06-06T10:41

By Kelly
at 2011-06-09T15:12
at 2011-06-09T15:12

By Hazel
at 2011-06-12T01:44
at 2011-06-12T01:44

By Hazel
at 2011-06-13T01:20
at 2011-06-13T01:20

By William
at 2011-06-17T23:34
at 2011-06-17T23:34
Related Posts
Fedora 15的桌面使用疑問

By Zanna
at 2011-05-26T14:12
at 2011-05-26T14:12
Fedora15 裝了之後無法與Win7多重開機

By Candice
at 2011-05-26T13:39
at 2011-05-26T13:39
date 輸出每個月的日期?

By Lily
at 2011-05-26T09:45
at 2011-05-26T09:45
ubuntu 無法啟動

By Carolina Franco
at 2011-05-26T07:14
at 2011-05-26T07:14
Ubuntu 11.04 怎麼把螢幕反白

By Catherine
at 2011-05-26T04:31
at 2011-05-26T04:31