Is there a way to change the core filename format per session instead of for the entire machine?
On Linux the only way I can find is using sysctl as root:
sudo /sbin/sysctl -w "kernel.core_pattern=core-%H-%N-%P"
On Solaris same problem with root
coreadm -g core-%n-%f-%p
But unfortunately both these commands change the system permanently for all users, which I wish to avoid.
What I want is to be able to put a command in my .bashrc and as a non priv user have my core files be placed and named where I want them.
Just found out you can do this in solaris with
coreadm -p core-%n-%f-%p $$
Does anyone know about Linux?