emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Capturing the results of shell execution


From: Michael Welle
Subject: Re: [O] Capturing the results of shell execution
Date: Tue, 17 Jan 2017 17:26:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux)

Hello,

Alex Bennée <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]