emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-babel shell evaluate with session does not return results
@ 2015-11-19 18:28 Giri Prashanth
  2015-11-28 19:17 ` Grant Rettke
  0 siblings, 1 reply; 3+ messages in thread
From: Giri Prashanth @ 2015-11-19 18:28 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

I am trying to run a shell commands from org-mode with using sessions.

I would like to use the session property, so I could continue with the
previous history. But when I execute the following,

#+BEGIN_SRC shell :session test
echo foo
#+END_SRC

nothing happens with emacs is unresponsive and the echo area says:
executing Shell code block...

I am able to quit with C-g and there is buffer with name test created which
has bash prompt.

I was also able to run the shell commands without session and it returns
the output, like below
#+BEGIN_SRC shell
echo foo
#+END_SRC

#+RESULTS:
: foo

Any reason why org babel execute for shell with session does not terminate ?
Thank you very much in advance for any response,

-GP

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

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

* Re: Org-babel shell evaluate with session does not return results
  2015-11-19 18:28 Org-babel shell evaluate with session does not return results Giri Prashanth
@ 2015-11-28 19:17 ` Grant Rettke
  2015-12-01 15:18   ` Giri Prashanth
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Rettke @ 2015-11-28 19:17 UTC (permalink / raw)
  To: Giri Prashanth; +Cc: emacs-orgmode@gnu.org

On Thu, Nov 19, 2015 at 12:28 PM, Giri Prashanth
<giri.prashanth@gmail.com> wrote:
> Any reason why org babel execute for shell with session does not terminate ?
> Thank you very much in advance for any response,

Just ran this code and got the following results...

#+NAME: 4AFF24E4-43CF-4FFF-A9E9-4896630C977D
#+BEGIN_SRC shell :session test
echo foo
#+END_SRC

#+RESULTS: 4AFF24E4-43CF-4FFF-A9E9-4896630C977D
#+BEGIN_EXAMPLE
| foo |
#+END_EXAMPLE

Org version from Git: “8.3.2”

Emacs version: “24.5.1”

What versions are you on?

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

* Re: Org-babel shell evaluate with session does not return results
  2015-11-28 19:17 ` Grant Rettke
@ 2015-12-01 15:18   ` Giri Prashanth
  0 siblings, 0 replies; 3+ messages in thread
From: Giri Prashanth @ 2015-12-01 15:18 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org

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

Thank you for testing, I have

Org-mode version 8.3.2 (8.3.2-37-gd45217-elpa @
~/.emacs.d/elpa/org-20151123/)
with Emacs version GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS
apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org

I am on MAC OS X with emacs from http://emacsforosx.com

Thank you,
-GP


On Sat, Nov 28, 2015 at 11:17 AM, Grant Rettke <gcr@wisdomandwonder.com>
wrote:

> On Thu, Nov 19, 2015 at 12:28 PM, Giri Prashanth
> <giri.prashanth@gmail.com> wrote:
> > Any reason why org babel execute for shell with session does not
> terminate ?
> > Thank you very much in advance for any response,
>
> Just ran this code and got the following results...
>
> #+NAME: 4AFF24E4-43CF-4FFF-A9E9-4896630C977D
> #+BEGIN_SRC shell :session test
> echo foo
> #+END_SRC
>
> #+RESULTS: 4AFF24E4-43CF-4FFF-A9E9-4896630C977D
> #+BEGIN_EXAMPLE
> | foo |
> #+END_EXAMPLE
>
> Org version from Git: “8.3.2”
>
> Emacs version: “24.5.1”
>
> What versions are you on?
>



-- 
-giri

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

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

end of thread, other threads:[~2015-12-01 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 18:28 Org-babel shell evaluate with session does not return results Giri Prashanth
2015-11-28 19:17 ` Grant Rettke
2015-12-01 15:18   ` Giri Prashanth

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