From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 863AD3EAE7 for ; Sat, 23 Mar 2002 15:33:08 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g2NKX8m07969 for ; Sat, 23 Mar 2002 15:33:08 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g2NKX7X22387 for blinux-list@listman.redhat.com; Sat, 23 Mar 2002 15:33:07 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2NKX7i22383 for ; Sat, 23 Mar 2002 15:33:07 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g2NKX7m07965 for ; Sat, 23 Mar 2002 15:33:07 -0500 Received: from lexx.delysid.org (mail@212186194087.graz.teleweb.at [212.186.194.87]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g2NKUuu16271 for ; Sat, 23 Mar 2002 15:30:56 -0500 Received: from mlang by lexx.delysid.org with local (Exim 3.35 #1 (Debian)) id 16osCS-0006pp-00 for ; Sat, 23 Mar 2002 21:33:16 +0100 To: blinux-list@redhat.com Subject: Re: Screen Command vs. Virtual Consoles References: From: Mario Lang In-Reply-To: ("John J. Boyer"'s message of "Sat, 23 Mar 2002 10:08:46 -0600 (CST)") Date: Sat, 23 Mar 2002 21:33:15 +0100 Message-ID: <87elib6n3o.fsf@lexx.delysid.org> User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: blinux-list@redhat.com Sender: blinux-list-admin@redhat.com Errors-To: blinux-list-admin@redhat.com X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: blinux-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: "John J. Boyer" writes: > Is there any advantage of using the screen command over using virtual > consoles? You can detach and later reattach to screen sessions. This allows me to leave certain programs running, and reattach to their screen instance when connecting later. Imagine, your computer has a network connection reachable from the internet say, via ssh. You login locally on your virtual terminal or whatever you use, and start screen. Then you open several screen windows, and start programs in there, say, e.g. Emacs, a shell session, and a lynx session. Now you have to leave your computer, you can either leave screen running, or for safety, detach the session using C-a d. Now you login into that machine from somewhere else, e.g. you went to work. You can invoke screen -r or screen -dR to reattach to the detached session. You get the same state as you detached it. See man screen for a description of the various detach/reattach commands. It is also possible to have screen as your login shell, basicly giving you a simultaneous session for each login. Also, you can attach to a running screen session without detaching the other terminal. Thats the option -x, and allows two or more people on different terminals to work with the same programs. I used this technique for a Linux course for blind students to replace overhead alike mechanisms. They simply all attached to my screen session. This helped extremely much. The method even worked the other way round, I configured their logins in such a way so that they were in a screen session everytime. So if someone had a problem, I simply attached to his screen session, and could see what was on his screen without having to move physically and disturb him by using his braille display. Recently, I also discovered that you can use screen to attach to a pty, a pseudo terminal. The only real world use currently I know of is to connect to certain ptys created by User-mode-linux. -- CYa, Mario