1833875 Members
1930 Online
110063 Solutions
New Discussion

Re: Core Dump Files

 
Pedro Cirne
Esteemed Contributor

Core Dump Files

Hi,

Is there a way to define the directorie where the core files are written?

Thks

Pedro
3 REPLIES 3
Gavin Clarke
Trusted Contributor

Re: Core Dump Files

No, it is where the program that failed was launched from, which could be pretty much anywhere.

find / -name core

Will tell you where they are.
Kent Ostby
Honored Contributor

Re: Core Dump Files

Pedro --

If you are talking about the system crash files that end up in /var/adm/crash by default, the answer is yes.

Modify the file /etc/rc.config.d/savecrash.

Uncomment and modify the line:

# SAVECRASH_DIR=/var/adm/crash

to something like:

SAVECRASH_DIR=/mydumpplace/crash

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Pedro Cirne
Esteemed Contributor

Re: Core Dump Files

Hi All,

Thks

Pedro