1753458 Members
4773 Online
108794 Solutions
New Discussion юеВ

Core Files

 
Anu Lanka
Occasional Contributor

Core Files

How do you prevent the creation of core files in HP_UX 11i?
4 REPLIES 4
Sachin Patel
Honored Contributor

Re: Core Files

May be create a file name core with permission --------- or r-------- or link of core to /dev/null

core -> /dev/null

# ll core
-r-------- 1 root sys 0 Apr 26 16:12 core
# ll core
lrwxrwxrwx 1 root sys 9 Apr 26 16:13 core -> /dev/null

Sachin
Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: Core Files

Probably the best way is to a ulimit -c 0 in the user's .profile. On second thought, THE BEST WAY is to fix the code so that it does not dump core.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: Core Files

Anu,

To prevent the creation of core files in unix requires a developer to insure that their program doesn't do stupid things like: failing to do adequate error checking, failure to make sure resources are available before consuming them, and failure to trap error conditions or potential error conditions.

Basically, you can't prevent them, but you can do a few things. One, just delete them. Two, report the core file creation to the responsible party whose software caused it to happen.

live free or die
harry
Live Free or Die
T. M. Louah
Esteemed Contributor

Re: Core Files

To have an idea about the core type "# file core" here's a good discussion "How can I analyze a core file? ":
http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xf3d399f08a51d61190040090279cd0f9,00.html

G'd luck !
T??
Remember PAP !
(a.k.a Please Assign Points!)
Little learning is dangerous!