Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

see "man dumpadm" and "man coreadm"

share|improve this answer
add comment

Your Answer

 
discard

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