emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [babel] Parse another code block's output then use captured data in


From: Rehan Iftikhar
Subject: [O] [babel] Parse another code block's output then use captured data in another code block
Date: Fri, 7 Mar 2014 07:23:43 -0800

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]