how do you set CPU time limit
- Forums
- Linux Commands
- how do you set CPU time limit
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. [847], Last Updated: Mon Jun 24, 2024
Archivo
Tue Apr 06, 2010
1 Comments
419 Visits
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
# 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.
https://www.webune.com/forums/20100406cczg.html