1849361 Members
6617 Online
104043 Solutions
New Discussion

Re: Stopping core dump

 
SOLVED
Go to solution
dictum9
Super Advisor

Stopping core dump

I have this 11.0 box that keeps dumping core, apparently due to SSH (as file core reveals)

I would like to set core size to 0, so it doesn't dump core anymore, how do I do that?
4 REPLIES 4
dictum9
Super Advisor

Re: Stopping core dump

so, ulimit does not exist in 11.0

Per advice, I did:


touch /core
chmod 444 /core

This means a new core dump should not be able to write to this one.
Dennis Handly
Acclaimed Contributor

Re: Stopping core dump

>so, ulimit does not exist in 11.0

This is incorrect. It exists in sh but not in ksh. Both are real shells.

>Per advice, I did: touch /core

I would suggest you use "mkdir core" instead. It is more obvious.
Bill Hassell
Honored Contributor

Re: Stopping core dump

AS Dennis indicates, the standard POSIX shell (not Bourne) has ulimit -c. The problem with mkdir is that you have to do this in every possible directory that a core might occur -- kind of hard to predict. ulimit sets the environment and if you are using ksh, there are many ulimit values you cannot set in ksh. However, you can change your shell to /usr/bin/sh with the chsh command, then add the ulimit line in your .profile and at the end of .profile, run ksh. (you will find the POSIX shell is almost identical to ksh so the last step may not be necessary)


Bill Hassell, sysadmin