LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2006, 04:21 PM   #1
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Rep: Reputation: 15
screen for Red Hat 9


I am using screen for Red hat 9 (shrike). I have experience with it on Debian. I am used to doing the following.

To start an application

screen -S screenname ./appliacation -parameters

Then when it ran press CRTL +A +D to detach it. This seems to work fine in my RH9 computer.

The problem I am having is reattaching the screen.

screen -x

to list screens

screen -r pid.screenname

to reattach.

On my RH9 it either reattachs the running screen right at screen -x or I get a list of screens from screen -x and it won't let me use the -r function to rattach a screen I can see that is clearly running, saying that it isn't (supposedly)

Any help appreciated!
 
Old 08-18-2006, 12:36 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by cramer
screen -x

to list screens

screen -r pid.screenname

to reattach.

On my RH9 it either reattachs the running screen right at screen -x or I get a list of screens from screen -x and it won't let me use the -r function to rattach a screen I can see that is clearly running, saying that it isn't (supposedly)

Any help appreciated!
My man page says that -x is used to attach to a session that is already attached:

Quote:
-x Attach to a not detached screen session. (Multi dis play mode).
and the -ls option is used to list running screen sessions:

Code:
       -ls and -list
            does  not  start  screen,  but  prints  a   list   of
            pid.tty.host  strings  identifying  your  screen ses*
            sions.  Sessions marked  `detached'  can  be  resumed
            with "screen -r". Those marked `attached' are running
            and have a controlling terminal. If the session  runs
            in  multiuser  mode,  it  is marked `multi'. Sessions
            marked as `unreachable' either live  on  a  different
            host  or  are `dead'.  An unreachable session is con*
            sidered dead, when its name matches either  the  name
            of  the  local  host,  or the specified parameter, if
            any.  See the -r flag for a description how  to  con*
            struct  matches.  Sessions marked as `dead' should be
            thoroughly checked  and  removed.   Ask  your  system
            administrator  if  you  are not sure. Remove sessions
            with the -wipe option.
I don't know why you can't reattach with -r. If you only have one session running, try using it w/o specifying the pid.screenname
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen Resolution-Red Hat EL AS 4 vgunaydin Linux - General 2 06-20-2006 01:35 AM
Boot Screen for red hat? evilmonkey Linux - Software 3 07-03-2004 02:43 PM
Red hat 9 screen blackout! eXor Linux - Newbie 3 09-04-2003 01:07 PM
Red Hat 9.0 - Screen problems kenneho Linux - Laptop and Netbook 2 05-24-2003 06:55 AM
Red Hat, non X, screen width. DiBosco Linux - General 6 01-19-2002 11:11 AM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration