On 6/2/08, Labitt, Bruce <[EMAIL PROTECTED]> wrote:
> That is what I do now.  I was wondering if there was a programmatic or
> more elegant way...
> The way that has been suggested would be roughly
>        a=getrlimit;  //save current setting
>        ulimit    // do what I want
>        setrlimit=a       // restore setting
> ?
> Thanks,

  Yes.  ulimit will change the current process, as well as any future
children.  Bear in mind however, you MUST be root in order for this to
work.  Only root is allowed to change the hard limit.  Anyone can
change their soft limit, but not higher then the hard limit.  hard
limits are reserved for root.

-- 
-- Thomas
_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/

Reply via email to