From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David A. Gershman" Subject: Re: How to use org mode shell with ssh? Date: Thu, 22 Sep 2016 07:45:28 -0700 Message-ID: <75c6bc66-34d3-81fc-33be-da541acf22f2@dagertech.net> References: <87eg4c8gfs.fsf@yandex.com> <87lgykrq3x.fsf@yandex.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------2E49445A94F613263D915B1C" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn5Fk-0001Z4-3H for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 10:45:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn5Ff-00057f-Ue for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 10:45:31 -0400 Received: from dagertech.net ([64.183.98.170]:47838 helo=mail.dagertech.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn5Ff-000573-Oy for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 10:45:27 -0400 Received: from [192.168.133.106] (unknown [192.168.176.200]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.dagertech.net (Postfix) with ESMTPSA id BE80AA0387 for ; Thu, 22 Sep 2016 07:45:24 -0700 (PDT) In-Reply-To: <87lgykrq3x.fsf@yandex.com> 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: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------2E49445A94F613263D915B1C Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit I'm not familiar with remote execution like this, but are you specifying /zsh/ on the Windows side or is it somehow inherently being assumed for the remote? A quick little hack to try may be to copy the /zsh/ executable on Windows to /ash/ and see if it fools the remote side. On 09/22/2016 07:00 AM, Colin Baxter wrote: > On Thu, Sep 22 2016, Xi Shen wrote: > >> 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? >> > I can't help you here. I've never used openwrt. All I can suggest is to > search openwrt documentation or try with cgywin. > > Good luck. --------------2E49445A94F613263D915B1C Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I'm not familiar with remote execution like this, but are you specifying zsh on the Windows side or is it somehow inherently being assumed for the remote?=A0 A quick little hack to tr= y may be to copy the zsh executable on Windows to ash and see if it fools the remote side.

On 09/22/2016 07:00 AM, Colin Baxter wrote:
On Thu, Sep 22 2016, Xi Shen wrote:

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?

I can't help you here. I've never used openwrt. All I can suggest is to
search openwrt documentation or try with cgywin.

Good luck.

--------------2E49445A94F613263D915B1C--