emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] Parse another code block's output then use captured data in another code block
@ 2014-03-07 15:23 Rehan Iftikhar
  2014-03-07 15:35 ` Eric Schulte
  2014-03-07 15:38 ` Andreas Leha
  0 siblings, 2 replies; 3+ messages in thread
From: Rehan Iftikhar @ 2014-03-07 15:23 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

Hello

I have a .org file where I am using sh code blocks to interact with a REST
API via curl. My first call is to authenticate with the REST API which
returns a token in the HTTP response. I would like to parse that HTTP
response (ie. with elisp via a subsequent code block) and use the token in
subsequent sh code blocks.

Right now I am doing this via a manual step where I step where I run the
first sh code block, set a :var PROPERTY, and then run the rest of the sh
code blocks. I would like to automate it if possible.

Thanks,
-Rehan

[-- Attachment #2: Type: text/html, Size: 654 bytes --]

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

end of thread, other threads:[~2014-03-07 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-07 15:23 [babel] Parse another code block's output then use captured data in another code block Rehan Iftikhar
2014-03-07 15:35 ` Eric Schulte
2014-03-07 15:38 ` Andreas Leha

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).