From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Redirecting stderr to stdout with babel/shell Date: Sun, 04 Jan 2015 09:07:00 -0500 Message-ID: References: <2015-01-01T17-23-41@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7lpj-0001wL-CJ for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 09:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7lpg-00059s-62 for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 09:07:07 -0500 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:55408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7lpg-00059Y-2C for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 09:07:04 -0500 Received: by mail-qg0-f47.google.com with SMTP id q108so14335445qgd.6 for ; Sun, 04 Jan 2015 06:07:02 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Fri, 2 Jan 2015 14:43:27 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: Karl Voit , emacs-orgmode@gnu.org Check out this solution: http://kitchingroup.cheme.cmu.edu/blog/2015/01/04/Redirecting-stderr-in-org-mode-shell-blocks/ I think it does what you want, and uses the idea below. Samuel Wales writes: > hi karl, > > i always wrap as follows and it works for me. > > { > your code > } 2>&1 > : > > the : eliminates fancy error handling. i find that much less confusing. > > > samuel -- ----------------------------------- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu