Home > Archive > PERL Beginners > April 2005 > How to set system limit through perl
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to set system limit through perl
|
|
| Ankur Gupta 2005-04-21, 3:56 pm |
| Hi,
I can set limit on coredumpsize, stacksize, etc. using the limit command.
limit coredumpsize 2048
But how can I do the same thing from a perl script?
I tried Shell::Source but I guess its only for inherting environment.
TIA.
--Ankur
| |
| Paul Johnson 2005-04-21, 3:56 pm |
| On Thu, Apr 21, 2005 at 06:36:26PM +0530, Ankur Gupta wrote:
> I can set limit on coredumpsize, stacksize, etc. using the limit command.
>
> limit coredumpsize 2048
>
> But how can I do the same thing from a perl script?
>
> I tried Shell::Source but I guess its only for inherting environment.
Correct. You could try BSD::Resource.
--
Paul Johnson - paul@pjcj.net
http://www.pjcj.net
|
|
|
|
|