#! /bin/sh # # Author: Andrew Tridgell # we want everything on stderr, so the program is not disturbed exec 1>&2 PID=$1 cat << EOF > /tmp/backtrace"${PID}" set height 0 up 8 bt full quit EOF /usr/bin/sugdb -x /tmp/backtrace"${PID}" /usr/sbin/smbd "${PID}" /bin/rm -f /tmp/backtrace"${PID}"