[GNU Screen](http://www.gnu.org/software/screen/) is a software application that can be used to multiplex several virtual consoles.

learn more… | top users | synonyms (1)

0
votes
2answers
36 views

how to create a screen session within an existing screen session

Case scenario: When I open my terminal, screen starts automatically. This is useful because I often need multiple screens locally within the same terminal. However, if I connect via SSH to a server ...
2
votes
0answers
98 views

Exiting copy / scrollback mode upon detach in byobu / screen

I've discovered that if I go into "copy mode" or "scrollback mode" in a byobu screen, detach from it and leave it running, the buffer will fill up and eventually block the process I'm running in the ...
0
votes
3answers
232 views

Starting a background screen session from ssh.

I would like to shoot a command to server to be run say forever! under "screen session" using ssh. so I am using something like ssh -t root@server screen -S myinf "python infinit1.py &" where ...
1
vote
1answer
213 views

Is there a way to reattach screen session that has no named pipe in /tmp/uscreens/…?

I was having difficulty reattaching to a screen session, so I tried to kill the client screen session and reattach to the server session. This failed. Then I did something kinda stupid. I did a ...
-2
votes
1answer
246 views

Running services from GNU Screen

There are quite a lot precautions one is to take when running a process as a daemon. It seems to me that running it inside GNU Screen is a viable alternative, since it guarantees to run the process ...
0
votes
1answer
77 views

Get the session name of a parent gnu screen

I know that the current session name can be accessed with the $STY environment variable, is there a way to get the session name of the parent screen session in case of nested screens?
9
votes
2answers
139 views

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 ...
4
votes
1answer
159 views

How to automatically define functions and aliases on remote server after ssh login

I want to define bash functions and aliases in my remote shell automatically on login. I can't put the definitions into .profile or similar because the users I log in as are often shared with others ...
0
votes
1answer
406 views

Detach current session and attach to another session, done with one script, can I?

After reading the vague official doc of GNU screen( http://www.gnu.org/software/screen/manual/screen.html ) and asking quite some questions at this site. I still cannot figure out how to accomplish ...
0
votes
2answers
123 views

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 ...
5
votes
2answers
562 views

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 ...
0
votes
1answer
804 views

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 ...
35
votes
8answers
4k views

How do I know I'm running inside a linux “screen” or not?

The "screen" refers to a program mentioned in How to reconnect to a disconnected ssh session . That is a good facility. But there is a question I'd really like to know. How do I know whether I'm ...
2
votes
1answer
149 views

Scripting GNU Screen sessions

I have a couple of VM images that I run on a regular basis on my FreeBSD 9.0 fileserver. I have scripts written that start them with my desired settings (startUbuntuVM and startWindowsVM). I would ...
2
votes
2answers
85 views

Restart screen in screen session

Similarly to this question about restarting ssh when ssh is the only mode of connection to a server, what happens if I aptitude upgrade screen inside a screen session?
3
votes
2answers
263 views

How to prevent GNU screen from expanding tabs into spaces?

Using a normal bash prompt echo -e 'hello\tworld' produces a real tab. However the same command run within GNU screen puts spaces between the two words. I have tested this on Ubuntu 10.04 with Screen ...
0
votes
1answer
903 views

Can't type in commands after reattching to a screen session

Using CentOS 5, I have a screen session running and I often reattach to it after a day or two with the usual: screen -r <sockname> The session reattaches fine, and runs fine (I can see output ...
3
votes
1answer
2k views

GNU screen clearing on vim,less,etc. exit

I'm very new to screen but have configured my ~/.screenrc file according to various recommendations I've found on the internet. I have one issue with it though which I'm sure could be resolved very ...
5
votes
1answer
135 views

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 ...
1
vote
2answers
482 views

Disable clear at start of screen via .screenrc?

Is there any way to disable the behavior of gnu-screen, of issuing a clear at startup? I'm using screen merely as a backstop, so that if disconnected, the session isn't HUP'ed. And I've got my shell ...
41
votes
3answers
18k views

How to re-order windows, change the scroll shortcut, and modify the status bar contents in GNU Screen?

I learned to use gnu-screen and have been using it for the past several weeks. I got a grip of the basics now, and would be very helpful if I get these queries clarified: How do I rename / reorder / ...
3
votes
2answers
3k views

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 ...
0
votes
2answers
266 views

Is gnu screen or tmux more stable for keeping running on the server?

I want to keep a screen or tmux session running forever on a Ubuntu server, possibly for running a Clojure web server application so I can tap into the process via REPL at any time. Gnu screen or tmux ...
6
votes
2answers
2k views

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 ...
3
votes
2answers
721 views

Configure GNU screen so that it stores command histories in files

I would like to configure GNU screen such that it stores the command histories of all the different windows in different files. I know by default GNU screen does not store the command histories (of ...
7
votes
2answers
963 views

Does tmux have all the features that screen has? And those screen is missing?

I'm considering switching from screen to tmux, but I've invested lots of time developing an extensive .screenrc, and I don't want to find after many hours of porting it to tmux that tmux can't do ...
0
votes
2answers
637 views

How can I go back in the (GNU) screen command history? (NOT shell command history!)

Currently, when I enter ^a : (control-A followed by ':') to send a command to GNU screen, I can go back one step in the history, and see exactly ONE previous command. This is really annoying, as I'm ...
0
votes
1answer
230 views

GNU/Screen - Large UTMP file and memory usage

I'm running a Fedora 12 x86-64 OpenVZ VPS and screen is using lots of virtual memory (98000+). I've also noticed that the UTMP file grows enormous over time: [root@demon~]$ date Wed Sep 8 22:02:58 ...
1
vote
1answer
246 views

screen not setting $TERM to screen

I have a problem with gnu screen. Computer 1: open terminal $ printenv TERM xterm-color $ screen $ printenv TERM screen Computer 2: open terminal $ printenv TERM xterm-color $ screen $ printenv ...
9
votes
4answers
6k views

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 ...
2
votes
1answer
245 views

Is there a way to configure the 'logfile' directive when invoking GNU screen from the commandline?

I have been using gnu-screen's 'logfile' command to log my session histories when making production changes. I like to log each change in a different directory; this means that whenever I start a new ...
3
votes
3answers
1k views

GNU screen configuration for optimal keycode recognition

Currently GNU screen will botch up certain keystrokes, for example CTRL pressed in combination with the arrow keys, so that eg when in vim insert mode, CTRL-PGUp will Uppercase the next/current word ...
5
votes
4answers
3k views

GNU screen loses (parts of) command histories

I use GNU screen with 5 different sessions, each of which stores its own command history. But often I don't find a command in the history, although I'm sure I've used it exactly in the session I'm ...
0
votes
2answers
299 views

Set up Home computer as a Server to Access it at Uni

I have Apache running and GNU Screen at Home. I need to access the comp 100km far away. I want the access only to the files in the folder /var/www. How can I get a remote control of my computer with ...
1
vote
2answers
361 views

Why does my .screenrc only trigger the opening of 2 screens?

I have the following in my .screenrc file: # Don't display the copyright page startup_message off # keep scrollback n line defscrollback 5000 # setup some screens screen -t top 0 top -o cpu -s 5 ...
2
votes
2answers
1k views

Is there a way to have GNU screen automatically open a number of screens the first time it starts a new session?

I often have 5+ screens open for monitoring the server within one screen and it's somewhat annoying to have setup them all up again after a system restart. Usually there is 1 top process and a few ...
0
votes
2answers
894 views

Get screen window title

I'm looking for a way to get the current window title in GNU screen . I have a script that use screen -X title something to change the window title when running and I would like to set it back to it's ...