terminate process after xx mins

thierry itty thierry.itty at besancon.org
Thu Oct 13 16:19:51 UTC 2005


kmail a écrit :

>Hi, is it possible to terminate a process after a number of mins from the
>time it was started ?
>
>Thanks
>  
>
When I  have to do this, I use a script like the following one

#!/bin/sh
/path/to/my/process with my arguments &
processid=$!
sleep time
kill -9 $processid

hth




More information about the redhat-list mailing list