emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to use org mode shell with ssh?
Date: Thu, 22 Sep 2016 10:38:16 -0400	[thread overview]
Message-ID: <87fuosyp7r.fsf@gmail.com> (raw)
In-Reply-To: CANO68ENp++rKET12ynaj59isE9HvRKVPJyKJ5s4A1sPcmhv_2g@mail.gmail.com

Xi Shen <davidshen84@gmail.com> writes:

> Instead of using ssh, I tried with scp. This time I got a different error.
>
> #+BEGIN_SRC shell :dir /scp:openwrt:/mnt/sda1
> ls -al
> #+END_SRC
>
Try opening the file in tramp directly - that should tell you where the error
lies: tramp or org?

> The error, I think, is from the remote end.
>
> /bin/sh: /bin/zsh: not found
>
> Clearly, I am using zsh on my Windows, but my remote OpenWRT system only has ash installed. Is there's way to specify the shell to use on the remote end?
>

Even more: try ssh to your box from the command line. Once you figure out
how that works, then you can teach tramp to use that method.

> On Thu, Sep 22, 2016 at 8:15 PM Xi Shen <davidshen84@gmail.com> wrote:
>
>     Hi,
>    
>     I just tried with:
>    
>     #+BEGIN_SRC shell :dir /ssh:openwrt:/mnt/sda1
>     ls -al
>     #+END_SRC
>    
>     But still got the same error. I wonder on which end threw me this error. Maybe it is because I am using Emacs on Windows, and some thing is missing? Or maybe it is because the remote
>     system is OpenWRT which has limited function?
>
>     On Thu, Sep 22, 2016 at 4:57 PM Colin Baxter <m43cap@yandex.com> wrote:
>    
>         On Wed, Sep 21 2016, William Denton wrote:
>        
>         > On 22 September 2016, Xi Shen wrote:
>         >
>         >> #+BEGIN_SRC sh :dir /sshx:openwrt:/mnt/sda1
>         >> ls -al
>         >> #+END_SRC
>         >
>         > Just use ssh, not sshx, and it should work.
>         >
>         > Bill
>        
>         In babel it is now (shell . t). The form (sh . t) is depreciated as from
>         org-mode version 8.2.10 at least.
>        
>         Best wishes.
>    
>     --
>
>     Thanks,
>     David S.
>    
> --
>
> Thanks,
> David S.
>

-- 
Nick

      parent reply	other threads:[~2016-09-22 14:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-22  1:02 How to use org mode shell with ssh? Xi Shen
2016-09-22  1:15 ` William Denton
2016-09-22  8:52   ` Colin Baxter
2016-09-22 12:15     ` Xi Shen
2016-09-22 12:37       ` Xi Shen
2016-09-22 14:00         ` Colin Baxter
2016-09-22 14:45           ` David A. Gershman
2016-09-22 14:52           ` Nick Dokos
2016-09-22 20:30             ` Fabrice Popineau
2016-09-23  8:32               ` Xi Shen
2016-09-23 10:49                 ` Fabrice Popineau
2016-09-24  0:40                   ` Xi Shen
2016-09-22 14:38         ` Nick Dokos [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=87fuosyp7r.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --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).