From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Executing org shell blocks on remote machine over ssh
Date: Tue, 18 Nov 2014 12:58:10 -0800 [thread overview]
Message-ID: <871tp01b19.fsf@uw.edu> (raw)
In-Reply-To: CA+vqiLEvGE8nQ_A+cD51X7Sq0=hrbRNQ9bLaBVs+e8PWbQ5LAA@mail.gmail.com
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).
--
Brady
next prev parent reply other threads:[~2014-11-18 20:58 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 [this message]
2014-11-18 22:01 ` Andreas Leha
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=871tp01b19.fsf@uw.edu \
--to=algebrat@uw.edu \
--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).