]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/btraceback.in
ebl tweak
[bacula/bacula] / bacula / scripts / btraceback.in
index 07dfa291798977e105f67d413e0cf6b52f4fd6de..db70e68ec4d02b49a05c1323965bcfa35119ddda 100755 (executable)
@@ -8,12 +8,13 @@
 #  $1 = path to executable
 #  $2 = main pid of running program to be traced back.
 #
-PNAME=`basname $1`
-if test `uname -s` = SunOs ; then
+PNAME=`basename $1`
+PNAME="${PNAME} on `hostname`"
+if test `uname -s` = SunOS ; then
   gcore -o @working_dir@/${PNAME} $2
   dbx $1 $2 <@scriptdir@/btraceback.dbx 2>&1 \
-   | @sbindir@/bsmtp -h @smtp_host@ -s "Bacula DBX traceback of ${PNAME}" @dump_email@
+   | @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula DBX traceback of ${PNAME}" @dump_email@
 else
   gdb -quiet -batch -x @scriptdir@/btraceback.gdb $1 $2 2>&1 \
-   | @sbindir@/bsmtp -h @smtp_host@ -s "Bacula GDB traceback of ${PNAME}" @dump_email@
+   | @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula GDB traceback of ${PNAME}" @dump_email@
 fi