From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shakthi Kannan Subject: Scripting with org-mode Date: Mon, 30 Nov 2015 22:13:47 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3RYP-0006Qe-4l for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 11:43:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3RYK-00076B-4d for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 11:43:53 -0500 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:34194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3RYK-000765-0k for emacs-orgmode@gnu.org; Mon, 30 Nov 2015 11:43:48 -0500 Received: by oies6 with SMTP id s6so99651638oie.1 for ; Mon, 30 Nov 2015 08:43:47 -0800 (PST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Is there a way to execute all the org-mode code blocks in a file, and send the output to stdout? For example, I have the following org file: === BEGIN === * Greeting #+BEGIN_SRC sh :results output echo "Hello $USER! Today is `date`" #+END_SRC * Current directory #+BEGIN_SRC sh :results output pwd #+END_SRC === END === I could go to each code block, and type C-c C-c to produce an output. But, I just want to be able to execute the entire file, and produce one single output. Is this possible? SK -- Shakthi Kannan http://www.shakthimaan.com