Re: terminate process after xx mins

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

 



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

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux