From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: tramp:sshx:(screen|tmux) Date: Wed, 10 Sep 2014 16:12:58 +0200 Message-ID: References: <87mwa7d1g6.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410358475 25331 80.91.229.3 (10 Sep 2014 14:14:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 14:14:35 +0000 (UTC) Cc: Sam Steingold , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 10 16:14:27 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 1XRif1-0006dH-7A for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 16:14:15 +0200 Original-Received: from localhost ([::1]:56622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRif0-0004xh-Mv for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 10:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRieF-0003qL-E9 for emacs-devel@gnu.org; Wed, 10 Sep 2014 10:13:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRie9-0001jB-KJ for emacs-devel@gnu.org; Wed, 10 Sep 2014 10:13:27 -0400 Original-Received: from mx2.bahnhof.se ([213.80.101.12]:17725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRie9-0001hM-E5; Wed, 10 Sep 2014 10:13:21 -0400 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx2-reinject (Postfix) with ESMTP id 08A1240C57; Wed, 10 Sep 2014 16:13:18 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF1) Original-Received: from mf1.bahnhof.se ([127.0.0.1]) by localhost (mf1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6EJqckdnWDpo; Wed, 10 Sep 2014 16:13:09 +0200 (CEST) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf1.bahnhof.se (Postfix) with ESMTP id 27FED330AD8; Wed, 10 Sep 2014 16:13:08 +0200 (CEST) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id D6E6C5257DA; Wed, 10 Sep 2014 14:13:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4n4cgdj42pYs; Wed, 10 Sep 2014 16:12:58 +0200 (CEST) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id 4FE2C5257D1; Wed, 10 Sep 2014 16:12:58 +0200 (CEST) In-Reply-To: <87mwa7d1g6.fsf@gmx.de> (Michael Albinus's message of "Wed, 10 Sep 2014 15:55:53 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.80.101.12 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:174147 Archived-At: Michael Albinus writes: > Sam Steingold writes: > >> Hi, > > Hi Sam, > >> 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. > > A while ago, I've played with mosh(*) as Tramp connection method. It is > designed exactly for your case, supporting reconnection of lost > sessions. I failed, because mosh is designed to draw on a screen, which > is not what Tramp needs in a connection buffer. > > Your idea to reconnect to an existing screen / tmux session would suffer > from the same problem I guess. At least I'm not aware how to support > them in an Emacs buffer. > > (*): https://mosh.mit.edu/ > >> Thanks. > > Best regards, Michael. > I have used dtach for this, albeit in a slightly different context. Maybe dtach can be of use for tramp? http://dtach.sourceforge.net/ -- Joakim Verona