#!/bin/sh ulimit -c unlimited sudo sysctl -w kernel.core_pattern=/tmp/core-%e-%p-%h-%t # echo "/tmp/core-%e-%p-%h-%t" > /proc/sys/kernel/core_pattern