[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: terminate process after xx mins



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]