From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: How to intersperse commands with their output in RESULTS block? Date: Thu, 6 Feb 2020 06:55:03 +0000 Message-ID: <871rr86w8p.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44598) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izb48-0000rm-3f for emacs-orgmode@gnu.org; Thu, 06 Feb 2020 01:55:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izb47-00011L-3g for emacs-orgmode@gnu.org; Thu, 06 Feb 2020 01:55:07 -0500 Received: from mail-eopbgr130127.outbound.protection.outlook.com ([40.107.13.127]:65093 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izb46-0000zA-Mg for emacs-orgmode@gnu.org; Thu, 06 Feb 2020 01:55:07 -0500 In-Reply-To: (Diego Zamboni's message of "Wed, 5 Feb 2020 18:25:39 +0100") Content-Language: en-US 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Diego Zamboni Cc: Org-mode On Wednesday, 5 Feb 2020 at 18:25, Diego Zamboni wrote: > tl;dr: is there a way to have ob-shell (or some similar mode) run command= s > one by one and include the commands, interspersed with their output, in t= he > #+RESULTS block? You haven't said on what type of system but, if Linux, you could try using =3Dscript=3D as a starting point: #+begin_src shell :results output script <