Core file location

Hi,
Regarding core dump on HP-UX.

 
more /etc/rc.config.d/savecrash
#!/sbin/sh
# @(#) $Revision: 80.1 $
# Savecrash configuration
#
#
# SAVECRASH:    Set to 0 to disable saving system crash dumps.
SAVECRASH=1

# SAVECRASH_DIR:Directory name for system crash dumps.  Note: the filesystem
#               in which this directory is located should have as much free
#               space as your system has RAM.
SAVECRASH_DIR=/var/adm/crash
#SAVECRASH_DIR=/tmp

# CHUNK_SIZE:   size of single crash image file (i.e. how big you want
#               each of image.n.x, image.n.x+1, etc. to be)
#               If not specified, savecrash will choose one based on the
#               physical memory size of the system. Can be specified in
....
.....
......

Why does my HPUX then generate the core file @ some strange location and not in the startup script directory for that process nor in "SAVECRASH_DIR=/var/adm/crash" ?

crash dumps and core dumps are different beasts. The former is about processes while the latter is about the kernel.

Is there a way to force generate the crash dump in HP-UX without the process terminating?

I understand that we can use gcore for generating core dumps !!