Probabil ca "timeout" te va ajuta:
timeout - Run a command with a time limit.

timeout executes a command and imposes an elapsed time limit. When the time
limit is reached, timeout sends a predefined signal to the target process.

Dragos



On Fri, May 13, 2005 at 11:14:33AM +0300, Ilyes Cristian wrote:
> 
> Salut
> 
> 
> am niste programe pentru care vreau sa fac niste statistici de performanta.
> programele genereaza pe stdout niste valori obtinute prin diverse socoteli.
> 
> pana acum am folosit "time" sa vad cat timp dureaza executia completa.
> 
> ma intereseaza cum pot sa rulez un program un timp specificat ( 1 sec - 300 
> sec) dupa care sa fie oprit automat si output-ul generat de program sa il pot 
> redirecta intr-un fisier. exista o comanda linux care sa imi opreasca un 
> program dupa un anumit timp?
> exclus varianta cu "sleep; kill -9"
>  
> ====================================================
> Cristian Ilyes
> ====================================================
> 
> --- 
> Detalii despre listele noastre de mail: http://www.lug.ro/
> 
> 

-- 

-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFChHi4ONlM6PUJv7kRAs7pAJ9d8t48Y5ah5PwSVq0Ov7LnEZDQ2QCfchqD
TjZEO4pZGdnId1J7d2ObIqQ=
=+CLU
-----END PGP SIGNATURE-----



--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui