From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: Capturing the results of shell execution Date: Tue, 17 Jan 2017 17:26:55 +0100 Message-ID: <87fukh64a8.fsf@luisa.c0t0d0s0.de> References: <87vatdu3pi.fsf@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTWbC-0005CV-F7 for emacs-orgmode@gnu.org; Tue, 17 Jan 2017 11:27:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTWb9-00061H-AS for emacs-orgmode@gnu.org; Tue, 17 Jan 2017 11:27:06 -0500 Received: from mout.gmx.net ([212.227.17.22]:54575) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cTWb9-00060H-0s for emacs-orgmode@gnu.org; Tue, 17 Jan 2017 11:27:03 -0500 Received: from stella.c0t0d0s0.de ([89.204.154.100]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MRSeC-1c0tuD2dr6-00SjM0 for ; Tue, 17 Jan 2017 17:26:57 +0100 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 12972C45FC for ; Tue, 17 Jan 2017 17:26:56 +0100 (CET) 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") 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" To: emacs-orgmode@gnu.org Hello, Alex Benn=C3=A9e 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=3Daarch64-linux-gnu- --arch=3Darm64 > 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