?

Log in

No account? Create an account

I love it that we call them "prompts":>

« previous entry | next entry »
Jan. 30th, 2005 | 05:32 pm
mood: geekygeeky

I've moved my personal virtual "home", which as always is some sort of remotely accessible command-line shell environment, to another server recently. I'm still not completely moved in, but I've resumed my use of "screen" [insert link here], an application which is hard to explain, but if you aren't familiar with it, this post won't mean much to you anyway. So I'd gotten the part set up where I always start up a "screen" session when I log in, but I'd forgotten to set up the "power detach-and-reattach" part, which has the effect of letting you pick up where you left off after getting disconnected.

So today I got that set up, and screen helpfully tells me

There are several suitable screens on:
13574.pts-7.cp (Detached)
7548.pts-7.cp (Detached)
11783.pts-7.cp (Detached)
27672.pts-7.cp (Detached)
9791.pts-7.cp (Detached)
13255.pts-14.cp (Attached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.


I've been reattaching them one by one, and each time there's a flash of recognition in my brain. "I remember this! This is from when I was working on such-and-such idea, and poking around in xyz directory, and oh wow, that was two weeks ago! I did this and that, and there are still unresolved issues a, b, and c! Ah, here's a scrap of email I was writing! Here's a half-edited config file I've since rewritten! careful, don't save that."

And so on.

Link | Leave a comment | Share

Comments {5}

(Deleted comment)

Triple Entendre

(no subject)

from: triple_entendre
date: Jan. 31st, 2005 12:45 pm (UTC)
Link

sweeet!

Reply | Parent | Thread

JP Sugarbroad

(no subject)

from: taral
date: Jan. 31st, 2005 06:14 am (UTC)
Link

That's why my startup runs "screen -xRR"

Reply | Thread

Triple Entendre

Options

from: triple_entendre
date: Jan. 31st, 2005 11:47 am (UTC)
Link

Interesting. (I see that that's what screen does by default when it's run as a login shell.) So in the event you somehow had a dozen screen sessions running, as I did, you'd connect to the next dormant one automatically each time you logged in and out again successfully, until they were all gone. And, if you were still logged in from another terminal somewhere, it would stay open (until you logged out), and would show your typing as if you were still sitting there.

I've been using "exec screen -D -R -A" in my .login script. The -A is because I sometimes reconnect from my brand spanking new Treo 650, and I want it to resize the screens appropriately.

Reply | Parent | Thread

JP Sugarbroad

Re: Options

from: taral
date: Jan. 31st, 2005 04:55 pm (UTC)
Link

Ah. I use -x instead of -D because I sometimes want to be able to connect in multiple times and still only have one screen session.

Reply | Parent | Thread

Triple Entendre

Re: Options

from: triple_entendre
date: Feb. 3rd, 2005 02:28 am (UTC)
Link

You're right, that IS more useful. Now I've switched to:

exec screen -xRR -A

Reply | Parent | Thread