Screen help

Devon Stewart devonst17 at gmail.com
Mon Apr 1 11:13:58 EDT 2013


Oh, sure.

From cygwin: exec ssh ...
From ssh: exec su
From su: exec screen

Then from screen, if you hit ^D it'll exit everything. Exec replaces the current running shell with the thing you're exec-ing.

-Devon

Apr 1, 2013 4:31、Tony Baechler <tony at baechler.net> のメッセージ:

> Yes, but this assumes that I'm at the local console.  I almost never am. When I am, I only have to use the Alt-right arrow to get to another VT. That doesn't work with ssh which is usually how I connect.  I use ssh over the LAN.  I just want one press of ^d to log me out instead of two.  As it is now, if I su to root,I have to press ^d four times.  The first exits my root shell, the second exits Screen, the third logs me out and the fourth closes my Cygwin bash shell.  There must be a quicker and easier way.
> 
> On 3/31/2013 9:14 PM, Devon Stewart wrote:
>> I did this a while back. It got a bit unusable on a remote machine, but it could work for you:
>> 
>> Create a script, and use this in your inittab (or however you launch your VTs)
>> 
>> Use 'tty' to determine your TTY name
>> Look for a screen session matching that name.
>> If it doesn't, create it.
>> If it does, attach to it.
>> 
>> Should be pretty straight forward. I used a technique like this to separate shell history files per VT for a friend of mine.
>> 
>> -Devon
> _______________________________________________
> Speakup mailing list
> Speakup at linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup


More information about the Speakup mailing list