From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: tramp:sshx:(screen|tmux) Date: Wed, 10 Sep 2014 20:06:42 +0200 Message-ID: <874mwfmjt9.fsf@gmx.de> References: <87mwa7d1g6.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410372437 21704 80.91.229.3 (10 Sep 2014 18:07:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 18:07:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 10 20:07:10 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRmIP-0008AC-P3 for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 20:07:09 +0200 Original-Received: from localhost ([::1]:57967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRmIP-0003pa-9U for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 14:07:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRmI9-0003pQ-BH for emacs-devel@gnu.org; Wed, 10 Sep 2014 14:06:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRmI4-00076J-7U for emacs-devel@gnu.org; Wed, 10 Sep 2014 14:06:53 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:51835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRmI3-00076C-UH; Wed, 10 Sep 2014 14:06:48 -0400 Original-Received: from detlef.gmx.de ([93.202.49.224]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Ldbqw-1YADi80RPe-00ilfa; Wed, 10 Sep 2014 20:06:46 +0200 In-Reply-To: (Sam Steingold's message of "Wed, 10 Sep 2014 11:09:13 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:iezvmtVrzFUmJVhx7vlRYKgnQVANoiS0Z+EatmevCtdH4LZMyck omUfgxZ5cmioPSt+LppI6EMB//telNgN8sxb142WfE/PdLqEf2rA7NL/RUF7OXr+WJsrk5E ugEKgc0qZOG7NenngFUhOjQAfTLzqHWuQAOP/Yr2z6IrMqitM7V2Bg5OnDixnkqh+jQiVzB bv9FbwmxK//XYlUjARnrg== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174163 Archived-At: Sam Steingold writes: >> * [2014-09-10 16:12:58 +0200]: >> Michael Albinus writes: >>> Sam Steingold writes: >>> >>>> I wonder if it is possible to add a "nohup/screen/tmux" method which >>>> would create a remote screen/tmux session or reconnect to it if it >>>> already exists. >>>> The idea is that some interactions (e.g., an interactive R session) is >>>> too expensive to restore after a crash caused by a disconnect. >>> >>> (*): https://mosh.mit.edu/ >> >> I have used dtach for this, albeit in a slightly different context. >> Maybe dtach can be of use for tramp? >> >> http://dtach.sourceforge.net/ > > dtach looks like abandonware - no releases in 6 years. > However, if it is small and simple enough, the emacs community might > strip it down and take over it and ship it with emacs. Well, looking at screen, tmux and dtach, the latter one looks like the most promising one. The man page claims "it works best with full-screen applications such as emacs" :-) All of them need some book-keeping of available sessions. This is a task which shall be done in general for Emacs (if we decide to use them). I have no idea, whether there is already a common Emacs package dedicated to this. OTOH, I believe that mosh would be better suited, because it does not need to know about pending sessions. A simple (re-)connect to the server in question would do the job. Best regards, Michael.