View Full Version : how to limit resources in Linux
o0O0o.o0O0o
07-17-2008, 07:47 AM
hi ,
is there any way so that whenver any process takes more than 5 minutes , then system automatically kills the process in the unix shell account
If you add the following line of code to your ~/.bash_profile
export TMOUT=60*5
Your bash shell will terminate after 5 minutes have passed if you weren't interacting with the shell.
If you only to control the duration where a given process is allowed to run...please this link
http://www.unix.com/unix-dummies-questions-answers/27234-starting-processes-timeout.html
Cheers
~E
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.