From: Eric Bollengier Date: Tue, 28 Oct 2008 16:34:52 +0000 (+0000) Subject: ebl Fix STDERR/STDOUT redirection X-Git-Tag: Release-7.0.0~3835 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52d28f48850c7c1e4618f4a18bc2f8f9c1f77ace;p=bacula%2Fbacula ebl Fix STDERR/STDOUT redirection git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7925 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/scripts/btraceback.in b/bacula/scripts/btraceback.in index 42ffa93809..d4271c34ce 100755 --- a/bacula/scripts/btraceback.in +++ b/bacula/scripts/btraceback.in @@ -13,11 +13,11 @@ PNAME="${PNAME} on `hostname`" WD="@working_dir@" if test `uname -s` = SunOS ; then gcore -o ${WD}/${PNAME} $2 - dbx $1 $2 <@scriptdir@/btraceback.dbx 2>&1 >${WD}/bacula.$$.traceback + 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 >${WD}/bacula.$$.traceback + 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