emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: Executing org shell blocks on remote machine over ssh
Date: Tue, 18 Nov 2014 22:01:16 +0000	[thread overview]
Message-ID: <olu389gcgnn.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 871tp01b19.fsf@uw.edu

Hi all,

Brady Trainor <algebrat@uw.edu> writes:
> Ista Zahn <istazahn@gmail.com> writes:
>
> [snip]
>> I guess I'm missing something (like why the OP want's to run a shell
>> in a separate window), but why not just
>>
>> #+BEGIN_SRC sh :results output :dir /ssh:lycastus:/home/bviren :session *shell*
>>   /bin/pwd
>>   echo $HOSTNAME
>>   ls -l foo.sh
>>   echo "---"
>>   cat foo.sh
>>   echo "---"
>>   source ./foo.sh
>>   echo $FOO
>> #+END_SRC
>
> Tangentially related... 
>
> *term* looks nice too (M-x term instead of M-x shell). This `term' is
> like a more literal terminal embedded in Emacs. Even key-bindings are
> hijacked. (Amusingly, readline utility gives bash some Emacs-like
> key-bindings.) In a stackoverflow question, it is pointed out that
> *term* versus *shell*, you miss out on features like isearch (C-s, C-r
> etc.). Then, switching around a lot is hindered, since C-x o
> (other-window) is hijacked (but the suggested windmove binding still
> works).

Well, if the code to be executed remotely is long running, I do not want
to assume the connection to last during the full execution of that code.
Hence, I am interested in sending code to a running tmux session.

One possibility is to have tmux attached from withing emacs' term.  This
might not work too well, unfortunately.  For instance, ess is currently
not able to talk properly to an R session running inside tmux inside
term (which is why I've given up on that idea for now).

Regards,
Andreas

      reply	other threads:[~2014-11-18 22:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-17 16:04 Executing org shell blocks on remote machine over ssh David Bjergaard
2014-11-17 22:50 ` Myles English
2014-11-18 15:55   ` Andreas Leha
2014-11-18 15:43 ` Brett Viren
2014-11-18 18:12   ` Ista Zahn
2014-11-18 18:23     ` David Bjergaard
2014-11-18 18:31       ` Ista Zahn
2014-11-18 19:03       ` Brett Viren
2014-11-18 19:52       ` Subhan Michael Tindall
2014-11-18 20:58     ` Brady Trainor
2014-11-18 22:01       ` Andreas Leha [this message]

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=olu389gcgnn.fsf@med.uni-goettingen.de \
    --to=andreas.leha@med.uni-goettingen.de \
    --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).