Re: Hot to know system wide shell variable?

Vilius Puidokas <[email protected]> Wed, 24 Sep 2003 11:33:04 -0400 (EDT)
Newsgroups gmane.linux.redhat.devel
Message-ID <Pine.LNX.4.21.0309241131080.21269-100000@andros.fantasy.commissioner.com>
/etc/profile would probably be the one.

grep -ir ulimit /etc/*
/etc/init.d/functions:  ulimit -S -c 0 >/dev/null 2>&1
/etc/profile:ulimit -S -c 0 > /dev/null 2>&1
/etc/rc.d/init.d/functions:     ulimit -S -c 0 >/dev/null 2>&1
[this is on RH7.2]

On Wed, 24 Sep 2003, Masahide Tomita wrote:

> Hi, 
> 
> I'm developping an daemon application using Redhat 7.2, and having
> problems.
> My application still contains bugs, so I need cores to debug. 
> When the program is run from logged-in shell(bash), it dumps core but
> when it runs from system boot script, it doesn't dump core.
> 
> What I suspect is, that for log-in shell ulimit -c is set to unlimited
> for sure, but for system wide setting, ulimit -c might be set to
> different value.
> 
> So, what I want to know are : 
> 
> How do I see a system wide value of ulimit -c ?
> How do I set system wide value of ulimit -c ?
> 
> 
> Thanks in advance for your help.
> 
> Regards,
> 
>