From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xi Shen Subject: Re: How to use org mode shell with ssh? Date: Thu, 22 Sep 2016 12:37:38 +0000 Message-ID: References: <87eg4c8gfs.fsf@yandex.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113e2704eec368053d17edec Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn3GA-0006HM-PX for Emacs-orgmode@gnu.org; Thu, 22 Sep 2016 08:37:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn3G9-0006GI-Jb for Emacs-orgmode@gnu.org; Thu, 22 Sep 2016 08:37:50 -0400 Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:33490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn3G9-0006Fg-Cr for Emacs-orgmode@gnu.org; Thu, 22 Sep 2016 08:37:49 -0400 Received: by mail-oi0-x232.google.com with SMTP id r126so95502297oib.0 for ; Thu, 22 Sep 2016 05:37:49 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Colin Baxter , William Denton Cc: "emacs-orgmode@gnu.org" --001a113e2704eec368053d17edec Content-Type: text/plain; charset=UTF-8 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 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? On Thu, Sep 22, 2016 at 8:15 PM Xi Shen 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 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. --001a113e2704eec368053d17edec Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Instead of using ssh, I tried with scp. This time I got a = different error.

#+BEGIN_SRC shell :dir /scp:openwr= t:/mnt/sda1
ls -al
#+END_SRC

=
The error, I think, is from the remote end.

/= bin/sh: /bin/zsh: not found

Clearly, I am usin= g zsh on my Windows, but my remote OpenWRT system only has ash installed. I= s there's way to specify the shell to use on the remote end?
=

On Thu, Sep= 22, 2016 at 8:15 PM Xi Shen <d= avidshen84@gmail.com> wrote:
Hi,

I just tried with:

<= /div>
#+BEGIN_SRC shell :dir /ssh:openwrt:/mnt/sda1
ls -= al
#+END_SRC

But still got the sam= e error. I wonder on which end threw me this error. Maybe it is because I a= m 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, 20= 16 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.

--001a113e2704eec368053d17edec--