]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/btraceback.in
new devel_bacula + fixes to conio/console
[bacula/bacula] / bacula / scripts / btraceback.in
index 8d29d9469ecb74c863657610a13a0305db19ae6a..79df59979d183bc2fa3ab48889e30558f0f2d63c 100755 (executable)
@@ -8,8 +8,8 @@
 #  $1 = path to executable
 #  $2 = main pid of running program to be traced back.
 #
-
-gdb -quiet -batch -x @sbindir@/btraceback.gdb $1 $2 2>&1 | mail -s "Bacula traceback" @dump_email@
+gdb -quiet -batch -x @sbindir@/btraceback.gdb $1 $2 2>&1 \
+ | @sbindir@/bsmtp -h @smtp_host@ -s "Bacula traceback" @dump_email@
 
 # Below is some old code that did the traceback from a core
 #  dump. However, for some odd reason, core dumps are not