emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <johnrkitchin@gmail.com>
To: Samuel Wales <samologist@gmail.com>
Cc: Karl Voit <news1142@karl-voit.at>, emacs-orgmode@gnu.org
Subject: Re: Redirecting stderr to stdout with babel/shell
Date: Sun, 04 Jan 2015 09:07:00 -0500	[thread overview]
Message-ID: <m2iogmk5bv.fsf@gmail.com> (raw)
In-Reply-To: <CAJcAo8s5d-kiRJ3RpGeDVNsKgOngMNejtsgPtWyBDTyB+rCWLw@mail.gmail.com> (Samuel Wales's message of "Fri, 2 Jan 2015 14:43:27 -0700")

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 <samologist@gmail.com> 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

  reply	other threads:[~2015-01-04 14:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01 16:27 Redirecting stderr to stdout with babel/shell Karl Voit
2015-01-01 17:10 ` Michael Brand
2015-01-02 21:43 ` Samuel Wales
2015-01-04 14:07   ` John Kitchin [this message]
2015-01-11 10:54     ` Karl Voit
2015-01-11 16:44       ` John Kitchin
2015-01-11 18:31         ` Karl Voit
2015-01-11 18:58           ` Achim Gratz
2015-01-21 16:52             ` Karl Voit
2015-01-11 11:43 ` Achim Gratz
2015-01-11 15:02   ` Karl Voit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2iogmk5bv.fsf@gmail.com \
    --to=johnrkitchin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=news1142@karl-voit.at \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).