On Thu, May 16, 2002 at 09:02:44PM +0530, Mayank Ahuja wrote:
> Hi All
> 
> 
> I'm working on Unix (solaris)
> I want to set the coredumpsize to 0

....

> Now i want to do the same using Perl script.
> I cannot use system or backticks (` `) because this will fork off a
> different shell.

That would be /bin/sh where the name is 'ulimit', but that won't help
you anyways, since the limit is per process and will only be inherited
to child processes, just like the environment.

So, you either need to start your perl script with a shell wrapper,
setting the ulimit beforehand, or you use the BSD::Resource module

    http://search.cpan.org/doc/JHI/BSD-Resource-1.15/Resource.pm

which lets you set the limits directly from within perl.

-- 
                       If we fail, we will lose the war.

Michael Lamertz                        |      +49 221 445420 / +49 171 6900 310
Nordstr. 49                            |                       [EMAIL PROTECTED]
50733 Cologne                          |                 http://www.lamertz.net
Germany                                |               http://www.perl-ronin.de 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to