#! /bin/bash PROG=${PROG:-/usr/sbin/smbd} GDBSCRIPT=/tmp/.$(basename $0).$$ cat > $GDBSCRIPT <