2 ms·
In BSD land you can specify the path and filename pattern for the core dump via a sysctl knob (kern.corefile). quick check of the docs On Solaris or Illumos I
by inferiorhuman 2y ago
In BSD land you can specify the path and filename pattern for the core dump via a sysctl knob (kern.corefile).
quick check of the docs
On Solaris or Illumos I'd eye coreadm(8) and maybe chuck something like this in my shell login script:
coreadm -p $HOME/coredumps/core.%f.%p
That'll put the executable name and PID in the dump filename and leave them all in ~/coredumps/… for all processes that are children of that login shell.
- sunshowers 2y agoTrue, that would have worked as well. Plenty of ways to do it.