1834813 Members
2782 Online
110070 Solutions
New Discussion

Re: HP 10.2 core disable

 
Phillip Popp
Regular Advisor

HP 10.2 core disable

Hi all, kinda new to unix. Does any one know how to disable core files from generating? I remember seeing some where where it can be done. Also does anyone have a simple command or script that will find all core files so I can delete them?

Thanks,
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: HP 10.2 core disable

To find and remove

find / -type f -name core -exec rm {} \;


Pete

Pete
V. Nyga
Honored Contributor

Re: HP 10.2 core disable

Hi,

create a directory 'core' in the directory where cores appear. Then no more core file is written.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
A. Clay Stephenson
Acclaimed Contributor

Re: HP 10.2 core disable

You can issue a ulimit -c 0 or create a zero length file named 'core' in the current working directory. These methods are fixing the symptoms; the real answer is to fix the code itself.
If it ain't broke, I can fix that.