From a982e4e41e8263f0306b23b771fcdd4efeb8acb4 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 28 Oct 2008 16:34:52 +0000 Subject: [PATCH] ebl Fix STDERR/STDOUT redirection git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7925 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/scripts/btraceback.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5