Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 .
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.