how do you set CPU time limit

RegisterLogin
how do you set CPU time limit
Post Description: if i want to apply a cpu time limit of 90 seconds on the ssh session in my linux server what command can i use to accomplish this.
Tags: how, do, you, set, cpu, time, limit
This Post Was Posted On Apr 06, 2010 By Archivo #3365
if i want to apply a CPU time limit of 90 seconds on the ssh session in my linux server what command can i use to accomplish this.

please help
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
hostman
#3727 1
try this and let me know if it works

# ulimit -t 90

22.2 Limiting Resource Usage
============================

You can specify limits for the resource usage of a process. When the
process tries to exceed a limit, it may get a signal, or the system call
by which it tried to do so may fail, depending on the resource. Each
process initially inherits its limit values from its parent, but it can
subsequently change them.

-t
Give each name the trace attribute. Traced functions inherit the DEBUG and RETURN traps from the calling shell. The trace attribute has no special meaning for variables.

Apr 06, 2010 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 2:49 am
Powered by: Webune Forums V3