Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I believe that, by default, core files on Solaris (and on most if not all other UNIX-like systems) are saved to the directory where the offending binary was invoked.

Is there a way to reconfigure this so that core files are generated to a specific location?

share|improve this question
up vote 2 down vote accepted

Yes, the command that you're looking for is coreadm

There are various patterns that you can use to set the file name based on the process/user etc. - see the man page for details. For example, to put core files under /var/core/core.[executable name].[process id]:

coreadm -g /var/core/core.%f.%p
share|improve this answer

see "man dumpadm" and "man coreadm"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.