Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 1999 15:15:57 -0500
From:      Guy Helmer <ghelmer@scl.ameslab.gov>
To:        "Ronald F. Guilmette" <rfg@monkeys.com>
Cc:        questions@freebsd.org
Subject:   Re: /bin/sh limits -u doesn't seem to set the limit
Message-ID:  <Pine.SGI.4.05.9904161514450.5580-100000@demios.scl.ameslab.gov>
In-Reply-To: <21347.924291593@monkeys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 Apr 1999, Ronald F. Guilmette wrote:

> Can somebody please explain to me what goes on here?
> 
> ----------------------------------------------------------------
> $ limits -u
> Resource limits (current):
>   maxprocesses-max      512
>   maxprocesses-cur       64
> $ limits -u 400
> Resource limits (current):
>   maxprocesses          400
> $ limits -u
> Resource limits (current):
>   maxprocesses-max      512
>   maxprocesses-cur       64
> $
> ----------------------------------------------------------------
> 
> What's the point of having a shell command to increase the maxproc limit
> if it then just immediately reverts back to exactly the same value it had
> before?

In the limits(1) man page:

             Within a shell script, limits will normally be used with eval
             within backticks as follows:

                   eval `limits -e -C daemon`

             which causes the output of limits to be evaluated and set by the
             current shell.

Ignore the part about "Within a shell script" -- it applies to an
interactive shell as well.

Guy

Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science 
Research Assistant, Ames Laboratory       ---         ghelmer@scl.ameslab.gov
Research Assistant, Dept. of Computer Science   ---   ghelmer@cs.iastate.edu
http://www.cs.iastate.edu/~ghelmer



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.4.05.9904161514450.5580-100000>