emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Herbert Sitz <hsitz@nwlink.com>
To: emacs-orgmode@gnu.org
Subject: Batch mode evaluation of source code?
Date: Fri, 17 Jun 2011 21:14:25 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110617T230734-356@post.gmane.org> (raw)

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

             reply	other threads:[~2011-06-17 21:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 21:14 Herbert Sitz [this message]
2011-06-17 21:47 ` Batch mode evaluation of source code? Eric Schulte
2011-06-17 22:45   ` Herbert Sitz
2011-06-17 22:55     ` Herbert Sitz
2011-06-17 23:02       ` Nick Dokos
2011-06-17 23:10         ` Herbert Sitz
2011-06-17 23:05     ` Eric Schulte
2011-06-18  0:17       ` Herbert Sitz
2011-06-18  7:32     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110617T230734-356@post.gmane.org \
    --to=hsitz@nwlink.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).