all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Batch mode evaluation of source code?
@ 2011-06-17 21:14 Herbert Sitz
  2011-06-17 21:47 ` Eric Schulte
  0 siblings, 1 reply; 9+ messages in thread
From: Herbert Sitz @ 2011-06-17 21:14 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-06-18  7:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 21:14 Batch mode evaluation of source code? Herbert Sitz
2011-06-17 21:47 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.