9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Sorace <a@9srv.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] reattach to a rio session
Date: Fri,  7 Nov 2014 10:46:11 -0500	[thread overview]
Message-ID: <1A471657-66B5-4063-8596-A5CD0CCB15FC@9srv.net> (raw)
In-Reply-To: <CANHdbFjuScfKv5T39b+ErfE97gXpuEtdyx=ZLuMhUcpnUK4K-Q@mail.gmail.com>

> After closing drawterm, how do I re-connect to its rio to see again windows which were started before? How do I reattach a window running e.g. 'rc' from other login session to the current?

Short answer:
	You can pre-arrange for this to work with command-line tools. Except in a very limited sense, you can't do this with graphical tools.

Long answer:
	There are various ways to set up an rc session (or any command-line tool) so that you can reattach later, but you need to arrange for that ahead of time. The simplest, using all tools which come with the system, is probably running:
	srv -e 'rc' whatever
and then using "con /srv/whatever" to connect to it later. I use this for a few system services, as it has the fewest moving parts, but it's imperfect (especially for a shell), because local echo won't always be what you expect, you can't get at the file descriptors in all the ways you might like, multiple readers/writers will get screwed up, &c.

	A good solution which is much more flexible and general, but somewhat more involved to set up and learn, is hubfs, available from contrib. See here:
	http://plan9.bell-labs.com/wiki/plan9/Hubfs/index.html

	As far as I'm aware, there isn't an existing way to do this with graphical programs. Hubfs will allow you to do it in some very limited ways, but it's almost certainly not what you're after.

	In cases where this manner of persistence really matters, we have VNC, although that's obviously unsatisfactory on other fronts. The group at LSUB was doing some great work with a "plan 9 way" of accomplishing this goal in Octopus (http://lsub.org/ls/octopus.html); I don't believe they're still working on that, though.

Anthony




  reply	other threads:[~2014-11-07 15:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07  9:44 András Hrubák
2014-11-07 15:46 ` Anthony Sorace [this message]
2014-11-07 16:12 ` Skip Tavakkolian
2014-11-20 12:23 ` Dante
2014-11-20 17:37   ` Skip Tavakkolian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1A471657-66B5-4063-8596-A5CD0CCB15FC@9srv.net \
    --to=a@9srv.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).