From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Re: Executing org shell blocks on remote machine over ssh Date: Tue, 18 Nov 2014 12:58:10 -0800 Message-ID: <871tp01b19.fsf@uw.edu> References: <874mtxx18q.fsf@duke.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqpr8-0001bD-9m for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 15:58:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xqpr2-0006NB-2A for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 15:58:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:47042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqpr1-0006Mf-T4 for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 15:58:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xqpr1-0005E1-2c for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 21:58:27 +0100 Received: from c-76-22-42-247.hsd1.wa.comcast.net ([76.22.42.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2014 21:58:27 +0100 Received: from algebrat by c-76-22-42-247.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2014 21:58:27 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Ista Zahn 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