move to external script and output core dump pattern