Questions tagged [gnu-screen]

GNU Screen is a software application that can be used to multiplex several virtual consoles.

GNU Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

309 questions
104
votes
4 answers

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
garconcn
  • 2,418
  • 8
  • 36
  • 46
37
votes
6 answers

Is there a way to make a "Screen" session survive reboot?

I am using the Screen utility and would like to preserve the session when the machine reboots. If not possible may be you can recommend other alternatives to Screen that would allow to preserve the sessions between reboots. I am using Ubuntu Server…
Sergey G
  • 485
34
votes
3 answers

Reattach or create a named screen session? (or persistent screen sessions)

Basically I have a remote screen session, which I wish to automatically reattach to.. Currently I'm doing this by with the following command (as an iTerm bookmark, or an alias) ssh host -t screen -x thesessionname This works fine, but if the…
dbr
  • 1,578
31
votes
11 answers

Hidden Features of `screen`

Since I use the *nix command screen all day, and I couldn't find anyone starting this question, I figured it should be started. You know the drill: community wiki, one answer per features so we all can vote.
Josh
  • 9,218
21
votes
2 answers

How to tell GNU screen to run .bash_profile in each new window?

When I open a new window in GNU screen, it runs .bashrc but not .bash_profile. In my setup, this results in some environment variables not being set up correctly in that window. How can I tell GNU screen to always run .bash_profile instead of…
user9474
  • 2,458
13
votes
4 answers

Run (GNU) Screen from script

I would like to launch some application inside screen session but from a script. Without script I would just launch screen, then open N windows with crtl-a-c and execute programs in each windows. I tried the following screen -d -m -S test screen -S…
radius
  • 9,653
13
votes
1 answer

.screenrc - multiple regions on launch

I know it's possible, but I can't for the life of me figure out how, to launch screen with one window in split region mode? ie: I have screen set to open multiple windows on launch, but want window 0 to be split into two regions with an application…
Rob B
10
votes
2 answers

Is it possible in a script to tell if it is being run from within GNU screen?

We have a long running process on a remote server which is kicked off manually from time to time. Unfortunately internet connections die, kernels panic and a whole host of other challenges can be encountered by the ssh session used to connect and…
cclark
  • 567
10
votes
2 answers

How to prevent screen from terminating when command in window terminates

When running 'screen ls' the screen stops with the text [screen is terminating]. I would like screen to keep the session alive and reattach to it to see the output of ls. Of course the real thing is that I don't run screen ls, but rather a screen…
Jarl
  • 315
6
votes
1 answer

Obtain hardcopy from a screen session

I have a job launched in a screen session which is expected to run for several hours. From time to time I'm requested to check if job is still running and guess at wich % of work is. Guess if it is working or not is as simple as perform a ps -fu…
6
votes
2 answers

GNU screen, how to get current sessionname programmatically

[ This can be considered step 2 of my previous question Is it possible to change GNU screen session name after created? ] Actually, I'd like to write a script that can display current screen session name and change current session name. For…
Jimm Chen
  • 1,759
  • 5
  • 18
  • 32
5
votes
2 answers

Can I disable the message line when launching ``screen -RR``

screen -RR is great. It does one of the two thing automatically: If there is any detached screen session, it picks up one can attach to it. If there is no detached screen session(no session yet, or all have been attach to other terminal), it…
Jimm Chen
  • 1,759
  • 5
  • 18
  • 32
5
votes
5 answers

Allow use of screen without ability to detach sessions

I'm wondering if this is possible. I'd like users to be able to launch screen on some of our hosts for the purpose of multiplexing their terminal login sessions. However, I don't want them to be able to detach the screen and leave it running in the…
Kamil Kisiel
  • 12,304
5
votes
1 answer

How to "Open a new window in GNU/Screen" by running a command?

I want to know how to accomplish this: Open a new window in GNU/screen, by running a command. Here's what I want to do: I uses GNU/screen daily. My laptop runs in UTF-8 locale, and I need to ssh to some specific servers which runs in GBK…
yegle
  • 706
4
votes
1 answer

Is it possible to change GNU screen session name after created?

[This continues my previous question How do I know I'm running inside a linux "screen" or not? ] As title, can I? I tried screen -S mysess but it creates a new screen instead of changing the name of current screen. I also tried screen -X…
Jimm Chen
  • 1,759
  • 5
  • 18
  • 32
1
2 3