dslreports logo
 
    All Forums Hot Topics Gallery
spc
uniqs
22
Rob_
Premium Member
join:2008-07-16
Mary Esther, FL

Rob_ to ds5v50

Premium Member

to ds5v50

Re: Screens

That worked, thanks! How do I prevent getting more then one screen? only need one.

-Rob

ds5v50
join:2003-01-22
Fremont, OH

ds5v50

Member

How you invoke screen is a great start, But to go to an already active screen you could do..

 
screen -R -D 
 
 

that will re-attach if there is already an open screen session. Also keep in mind if your running screen and just kill the window or the connection, screen will continue running. At the end of your screen session typing exit until the you get the " [screen is terminating]
" notice, will help keep screen from living past its needed time.

I would highly recommend reading the screen man page.

dennismurphy
Put me on hold? I'll put YOU on hold
Premium Member
join:2002-11-19
Parsippany, NJ

1 recommendation

dennismurphy to Rob_

Premium Member

to Rob_
said by Rob_:

That worked, thanks! How do I prevent getting more then one screen? only need one.

-Rob

If you only need one, then why are you using screen at all?

Selenia
Gentoo Convert
Premium Member
join:2006-09-22
Fort Smith, AR

Selenia

Premium Member

He is right. The whole purpose of screen is to be able to detach open terminals and reattach later. One example of me using it was controlling rtorrent via ssh from my Android. No need to stay connected or fear a lost connection. Just detach from previous ssh session and reattach to periodically check on it while rtorrent kept running peacefully.

dennismurphy
Put me on hold? I'll put YOU on hold
Premium Member
join:2002-11-19
Parsippany, NJ

1 recommendation

dennismurphy

Premium Member

Nohup is your friend ...