]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix STDERR/STDOUT redirection
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 28 Oct 2008 16:34:52 +0000 (16:34 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 28 Oct 2008 16:34:52 +0000 (16:34 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7925 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/btraceback.in

index 42ffa938098cd51f40376c35d036e57baa291f0e..d4271c34cef29dde8255fece4cd2b54536ff160b 100755 (executable)
@@ -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