Messages in this thread |  | | Date | Mon, 8 Oct 2001 17:32:14 -0400 | From | Phil Edwards <> | Subject | Re: [PATCH] core file naming option |
| |
After seeing this topic in the Kernel Cousin and reading through the mail archives, I thought I'd mention a very useful feature that Linux could steal^H^H^H^H^Hleverage from Solaris: the coreadm(1) program allows users to set a pattern for core file names, e.g.,
/var/core/core.%f.%p
for command foo with pid 1234 dumps core in /var/core/core.foo.1234 (to use the example from the coreadm man page). There're about half a dozen % patterns.
The root user can set patterns and policies systemwide (e.g., no coredumps for regular users, dump all corefiles everywhere into a directory readable only by root, etc, for security reasons). Also, this pattern information is stored per-process AFAICT, so in my login files I have
coreadm -p core.%f.%p $$
Meaning that all core files go into the current directory. It gets set for the shell itself, and all the processes spawned from that shell.
Both as a user and a sysadmin, I've found this to be very very useful.
Anyhow, just a thought. Thanks for reading.
Luck++; Phil
-- If ye love wealth greater than liberty, the tranquility of servitude greater than the animating contest for freedom, go home and leave us in peace. We seek not your counsel, nor your arms. Crouch down and lick the hand that feeds you; and may posterity forget that ye were our countrymen. - Samuel Adams - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |