From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: Capturing the results of shell execution
Date: Tue, 17 Jan 2017 17:26:55 +0100 [thread overview]
Message-ID: <87fukh64a8.fsf@luisa.c0t0d0s0.de> (raw)
In-Reply-To: <87vatdu3pi.fsf@linaro.org> ("Alex \=\?utf-8\?Q\?Benn\=C3\=A9e\=22's\?\= message of "Tue, 17 Jan 2017 15:05:29 +0000")
Hello,
Alex Bennée <alex.bennee@linaro.org> writes:
> I'm using org-babel snippets to automate some of my workflow. However
> I'm not interested in dumping all of the compile output, I'd rather get
> a simple value at the end to see if all was OK:
>
> #+name: build-test
> #+begin_src sh :results value
>
> set -e
> ./configure --cross-prefix=aarch64-linux-gnu- --arch=arm64
> make clean
> make -j9
> #+end_src
do it with shell?
#+begin_src sh :results output
(
set -e
echo "Build complete: `date`"
exit 1
) 2>&1 > /tmp/log
echo success: $?
#+end_src
Regards
hmw
prev parent reply other threads:[~2017-01-17 16:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 15:05 Capturing the results of shell execution Alex Bennée
2017-01-17 16:26 ` Michael Welle [this message]
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=87fukh64a8.fsf@luisa.c0t0d0s0.de \
--to=mwe012008@gmx.net \
--cc=emacs-orgmode@gnu.org \
/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).