1827136 Members
2983 Online
109716 Solutions
New Discussion

Versioning of core files

 
Steve Burgess
New Member

Versioning of core files


Saw this in another thread in response to a question about where core files are written...

"In HP-UX it's just the CWD provided that the process has write permissions in the CWD and can overwrite any previously existing core file. More ver because the file is simply 'core' rather than, for example, core.12345 (core.PID) the last program crash wins. Man 4 core for details."

Is there, then, no way to configure an HP-UX system to allow multiple core files to be kept in a given directory?

Thanks.
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: Versioning of core files

Allow me one question: How many core files do you expect?

If the first "core" is written, you should find the reason why, IMHO.

BTW, core files could also be very large.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Deoncia Grayson_1
Honored Contributor

Re: Versioning of core files

Unless you are manipulating the core file by initiating the core then of course you can send the out put to core.???? being the pid or otherwise by issuing a kill -11 or by using a utility aps32.dat, that will send the output to a specific file. If the application abnormally aborts and creates a core file then i don't know of any way to save it unless you mv it to another file name after its created.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
James R. Ferguson
Acclaimed Contributor

Re: Versioning of core files

Hi Steve:

You can append the process's pid to the core file it creates thusyly:

...for 11.0 & 11.11

# echo "core_addpid/W 1" | adb -k -w /stand/vmunix /dev/kmem

...for 11.23

# echo "core_addpid/W 1" | adb -o -w /stand/vmunix /dev/kmem

Regards!

...JRF...