]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/btraceback.in
ebl tweak
[bacula/bacula] / bacula / scripts / btraceback.in
index 656e8b31efaddb8d3bed126d691e8a397ba5c3e1..db70e68ec4d02b49a05c1323965bcfa35119ddda 100755 (executable)
@@ -9,11 +9,12 @@
 #  $2 = main pid of running program to be traced back.
 #
 PNAME=`basename $1`
-if test `uname -s` = SunOs ; then
+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