LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-03-2004, 08:49 AM   #1
bouadie
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
GNU screen ?


hi, guys
i am very new to screen program, i would appreciate any help to get it running.
i am trying to user screen program with either telnet or ssh to run commands without disconnecting from my eth0
when i try "screen" command and /sbin/ifconfig eth0 down , i get disconnected from my session , i think when unsing screen i should stay connected .
i would love to know the procedures how to get it running and working, when i type screen it only creates .screen and i do not seen .screenrc .
by the way , i am using redhat 9.

thanks to everybody.
 
Old 06-03-2004, 09:34 AM   #2
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
to run screen I use something like this
I have the screen installed on the server machine.

screen uses commands that are of the form Ctrl+A char

so I login to the server and run screen
now i start working and when Its time to go you can either leave it like that or if say you have to disconnect then use the command Ctrl+A d
which will detach the screen you are working. now you can close your telnet and go home peacefully.

Once I reach home you telnet again to the server and use screen -x and bingo you are back
to the old screen,

you can get help anytime when you are on screen using Ctrl+A ?

Ctrl + A c gives you a new tem to work on
Ctrl + A A goes to the last screen you worked on
Ctrl + A space will cycle among the screen
Ctrl + A " will show a list of the current screens
Ctrl + A d will detach
Ctrl + A [ will allow you to scroll - use the arrows to navigate
in scrolling mode use space to start copying a buffer another space will end copying
Ctrl + A ] will paste

read the info docs for a good overview
info screen
pinfo screen should give you what you need.
 
Old 06-03-2004, 10:38 AM   #3
bouadie
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks

thanks for your help .
i am trying something different , which is the following:
suppose i telnet to the machine , and i execute sreen command , then run /sbin/ifdown eth0 (will bring the network down ) but i want to be still connected to the shell it means that i will be able to run commands to the shell even that eth0 is disconnected and then type /sbin/ifup eth0 and that will bring the ethernet eth0 up again .
beleive i saw that and tried , worked perfectly .

thanks
 
Old 06-04-2004, 02:46 AM   #4
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
i dont understand how that is possible. because when you login to a machine and bring its eth0 down then it means the telnet also is down .

one psosible thing that could have happend is
the machine had 2 cards when you telnet it was using eth1 and you shutdown the eth0 device. eth1 was still up. screen has nothing to do with networking.
 
  


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
Placing status line of GNU Screen on top glvgfz Linux - General 0 11-03-2005 05:21 AM
GNU screen for X xowl Linux - Software 1 10-04-2005 06:49 AM
GNU screen and bash settings stutterbug Linux - Software 0 01-13-2005 08:27 AM
GNU screen question? bouadie Linux - Networking 1 06-03-2004 09:20 AM
Where can I get all those cool GNU screen savers for Free/OpenBSD? dkaplowitz *BSD 3 10-18-2003 11:03 AM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration