]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Backport of the btraceback script that keeps trace file on working dir
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 31 Oct 2008 08:32:10 +0000 (08:32 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 31 Oct 2008 08:32:10 +0000 (08:32 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7955 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/btraceback.in
bacula/technotes-2.4

index db70e68ec4d02b49a05c1323965bcfa35119ddda..d4271c34cef29dde8255fece4cd2b54536ff160b 100755 (executable)
 #
 PNAME=`basename $1`
 PNAME="${PNAME} on `hostname`"
+WD="@working_dir@"
 if test `uname -s` = SunOS ; then
-  gcore -o @working_dir@/${PNAME} $2
-  dbx $1 $2 <@scriptdir@/btraceback.dbx 2>&1 \
+  gcore -o ${WD}/${PNAME} $2
+  dbx $1 $2 <@scriptdir@/btraceback.dbx >${WD}/bacula.$$.traceback 2>&1
+  cat ${WD}/bacula.$$.traceback \
    | @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 \
+  gdb -quiet -batch -x @scriptdir@/btraceback.gdb $1 $2 >${WD}/bacula.$$.traceback 2>&1
+  cat ${WD}/bacula.$$.traceback \
    | @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula GDB traceback of ${PNAME}" @dump_email@
 fi 
index ad731442d2b064c69ee3af9ad6ec6f80f08bfcda..7a363ea640b66ba368b9f654838bb7e1c79a5141 100644 (file)
@@ -1,6 +1,8 @@
               Technical notes on version 2.4
 
 General:
+31Oct08
+ebl  Backport of the btraceback script that keeps trace file on working dir
 28Oct08
 kes  Migrate DB Log records too. This fixes last part of bug #1171.
 24Oct08