From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: Batch mode evaluation of source code? Date: Fri, 17 Jun 2011 21:14:25 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXgNE-0006Vj-JL for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 17:14:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXgND-0004gP-EP for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 17:14:40 -0400 Received: from lo.gmane.org ([80.91.229.12]:60996) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXgND-0004gG-2J for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 17:14:39 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXgNB-000726-6p for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 23:14:37 +0200 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2011 23:14:37 +0200 Received: from hsitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Jun 2011 23:14:37 +0200 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 The Org manual gives an example of a batch mode --eval that runs code to tangle code from Org files. I assume there's also a way to simply run a source code block and get its output in the terminal but I can't see how to do it. To give a concrete example, the Org manual uses this Python source block as example illustrating the difference between :session and non-session results output. How would I evaluate it from the command line and get the results output back in the terminal?: ------------------------- #+begin_src python :results output print "hello" 2 print "bye" #+end_src ------------------------ -- Herb