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

learn more… | top users | synonyms

1
vote
2answers
972 views

Centos start script for 'screen'?

I have a program that runs in the foreground so I run it via a 'screen'. Is there a good start/stop/restart template for 'screen'? I need it to pass the commands to the screen and create it if it ...
2
votes
1answer
1k views

How to get GNU screen to dynamically set gnome-terminal's title everytime I switch to different windows of a screen session?

Question title says it all. I am not able to tell which window of my screen session I am in, to find that out I am having to view ^aw (window list) and look at the where the * is to tell which window ...
1
vote
1answer
307 views

Destroy a dead window in Screen

I know I can kill the current window using C-k, however it doesn't work for a dead window. Is there anyway to kill it? Thank you. C-a C-k (kill) Destroy current window.
0
votes
1answer
326 views

Linux Screen; How do I make screen persistent with the -X command?

I'm running screen with the following command: screen -dms -X buildscript.py This executes the buildscript.py file and runs it as a daemon. Now, when the build script fails, screen automatically ...
3
votes
3answers
590 views

How to I use Vim's increment (Control-a) when in a screen session?

Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
7
votes
6answers
6k views

Is there any way to make “screen” session survive reboot?

The question says it all. I am using screen utility and would like to preserve the session when machine reboots. If not possible may be you can recommend other alternatives to screen that would allow ...
1
vote
2answers
89 views

Prevent Screen from creating sub shells

I'm running a Linux system that starts a custom text mode application from the .bashrc. The users are getting disconnected due to network dropouts. I had the idea that I'd use screen to allow them to ...
18
votes
3answers
11k views

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the ...
4
votes
2answers
3k views

Password for GNU screen lockscreen command?

I have set a password for screen sessions in my .screenrc. It works great, any time I need to re-attach to a screen session I need to enter the password. There is another feature where you can ...
4
votes
6answers
593 views

What are the benefits of using screen?

man screen: Screen is a full-screen window manager that multiplexes a physical ter‐ minal between several processes (typically interactive shells). Each virtual terminal provides the ...
1
vote
1answer
324 views

Screenrc Settings to get status of Remote Server

I frequently use ssh within screen to connect to a set of machines. It would be ideal to have the caption line show information about the server that I am ssh'd into (eg machinename, uptime and info ...
3
votes
2answers
533 views

screen / autossh question: easiest way to transparently integrate screen into my ssh?

I'm a bit new to screen and autossh: I'm simply looking to "fully automate" my ssh sessions, make them implicitly persistent, and have them automatically restore should my connection drop. I've ...
1
vote
2answers
832 views

Getting a custom .bashrc available in ssh session

Currently, we have quite a lot of shared ssh logins to various servers, and my colleagues wouldn't like it if I fiddled with the default shell to much. I do however have quite a list of aliases and ...
0
votes
2answers
207 views

Is there a way to block screen's multi display mode (-x) completely?

I'd like to configure screen to only allow attaching to detached sessions and not to attached sessions, even if they're from the same user. Is there a way to accomplish this? I couldn't find anything ...
0
votes
2answers
362 views

automatic ssh logout not working due to screen caption setting

I have set up an automatic logout for idle ssh session using "ClientAliveInterval 7200" However I do not get logged out everyone else who uses the server gets logged fine. I have tracked the ...
2
votes
2answers
1k views

Terminal Width issues with Linux Screen

I'm having issues where when I'm in a regular SSH terminal, with $TERM set to xterm-256color, and the terminal width is very small (narrow) in Linux Screen. I'm running Arch Linux. When I'm in the ...
1
vote
2answers
2k views

How to automate starting a multiuser screen session with adding acl to another user?

I often start a screen session, issue a ":multiuser on" command and then ":acladd someuser". Is there some way to get with a single shell command a screen session to start with these two commands ...
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 ...
5
votes
3answers
341 views

Can I create and manipulate unix “screens” in a script?

I have a work environment on my Ubuntu laptop in which I want to use three different screens. Eg. in terminal, I usually write screen -S mywork run_server_1 then, ctrl-a c to create a second ...
5
votes
4answers
5k views

Need a solution to stop students from rotating screen on laptops with intel graphics

We have some students who have figured out how to rotate the screen using either the hotkey combination or right click context menu. It's easy to fix but it's time consuming because no matter how many ...
6
votes
1answer
3k views

.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 ...
1
vote
1answer
473 views

screen -Amds screenname /patch/to/script.sh don't work only on debian

I have a problem with screen software, when I try to start screen with options screen -Amds screenname /patc/to/script.sh - nothing happens, it's a problem only on Debian system. On CentOS and FreeBSD ...
3
votes
2answers
1k views

Wrap current session in a screen session

I started an big operation, but I didn't start a screen session, So i can't disconnect without canceling the operation. Is there a way to inject screen so that the operation continues and sends its ...
2
votes
2answers
1k views

Running screen without root

I recently updated screen on my server and for some reason when logged in as a normal user I can no longer create a screen session. If I run sudo screen it works. It's probably a permissions error ...
0
votes
3answers
1k views

How to kill all screens that has been up longer then 3 weeks?

Im creating a script that i am executing every night at 03.00 that will kill all screens that has been running longer than 3 weeks. anyone done anything similar that can help? If you got a script or ...
1
vote
2answers
100 views

What is the best way to apply your old settings / environment to new server

Let's say you have your favorite settings with zsh, vim, screen, etc., behaving the way you want on some boxes. What is the best way to apply these settings / environments to a new server? Assuming ...
0
votes
3answers
180 views

POC of take screenshot from XP virtual machine of windows 7 main machine

I searching any ideas of take screenshot of main machine on windows 7 from virtual machine on windows XP, have any ideas or proof on concept to can do this? Maybe from integration drivers or ...
6
votes
2answers
472 views

How to know who is conected to my screen and where on the screen he is?

I use screen, and sometimes I'm forced to share it. How I can manage the active connections to my screen? I would like to monitor connections and users connected, where they are and what they do. ...
2
votes
2answers
238 views

Taking over locked user sessions in XP

What's the best way to allow an administrator access to a locked user XP session, preferably with a logged event? The goal is to allow admins to cleanly shutdown/save existing work when work needs to ...
2
votes
4answers
465 views

GNU Screen: one window per screen or one screen with multiple windows?

I've inherited a few sys admin tasks recently and am trying to wrap my head around using screen. The way the previous guy left it, there are four screen sessions running, some of which have two or ...
2
votes
1answer
551 views

unix screen logging change filename to window name

I know its possible to change the name of the logfile with "set filename" I'd like to have screen write its log files to the name of the window. how can I accomplish this ?
1
vote
2answers
516 views

Kill named running screen with -X only works after reattached

I am using ubuntu 8.04.4 and would like to start daemons like this: screen -dmS SESSIONNAME script.sh Then i want to kill these screens with -X like so screen -S SESSIONAME -X kill But, this ...
20
votes
7answers
13k views

Using ctrl-arrow keys with PuTTY and screen

I searched and couldn't find a solution for this anywhere. I'm using PuTTY from Windows to connect to various servers where I run bash and screen. It seems bash works fine with ctrl-arrow keys to ...
0
votes
1answer
401 views

Better Method of Opening TTY Permissions

At work, I have a few legacy servers that I log into as root, and then su down to a user. I continue to run into an issue where after doing so, I am unable to run screen as this user. I don't want to ...
12
votes
6answers
9k views

How do I ask screen to behave like a standard bash shell?

Just learned about the screen command on linux - it is genius. I love it. However, the actual terminal/prompt in screen looks and behaves differently than my standard bash prompt. That is, the ...
3
votes
3answers
803 views

How to use cursor keys in vi under screen?

If you run vi/vim in screen, when you press a cursor in insert mode, you get a new line + a character, which is a pain. Configure vim to move around instead.
43
votes
6answers
19k views

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen (fails) I have a script that ...
2
votes
1answer
200 views

Windows client for GNU Screen

I'm very happy with Putty running on my Windows machine and keeping all my terminal windows under GNU Screen in my server. However, I wonder if there's a version of Putty (or another software for that ...
2
votes
2answers
1k views

What's the difference between hardstatus and caption in GNU Screen?

I've started to play with GNU Screen setting. What's the difference between hardstatus and caption in GNU Screen? hardstatus seems to appear at the bottom on the Terminal, but I don't even know what ...
2
votes
2answers
539 views

SCREEN setup tips

How do you use the "screen" tool ? I'm looking for best practices and config tips : To keep clean and ordered sessions on several servers To have a beautiful colored interface To have a fully ...
14
votes
3answers
21k views

Create screen and run command without attaching

I am working on automating a maintenance routine that involves starting and stopping a script that is running in a screen session. My approach is to kill the screen session, and then restart it and ...
3
votes
1answer
2k views

detach screen session

I have an attached screen session where I am running some jobs. I closed its terminal without detaching it because it does not respond suddently. Now by screen -ls I can see it is still attached. But ...
7
votes
6answers
9k views

Can't get detached screen to resume

I use putty and have an unreliable wireless connection, so I use screen to keep my work going. Often I'll get disconnected, and then I can't reattach my screen. I'll run screen -D -RR and it will just ...
6
votes
3answers
11k views

kill a screen (but not all screens)

I have multiple screens running on an Ubuntu server that are initiated as: screen -dmS screen1 cmd screen -dmS screen2 cmd etc... And I need to kill one screen, but not all of them. What is the ...
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 ...
0
votes
1answer
2k views

Putty + Screen Auto Terminating Screens

I'm running screen inside a putty terminal. The problem I'm having is after a while of inactivity inside a screen, the screen automatically kills itself. So when I do things like run something ...
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 ...
1
vote
2answers
594 views

create an append log for a detached screen session

I use a detached screen session to launch a process, I like it 'cause I can reattach the session and check how it is going. The process shows output on a session, checked with screen -r or screen -x, ...
0
votes
1answer
1k views

How to bind action to ctrl-f1 in screen?

I know I can do: bindkey "...." action where .... is what i get by typing ctrl-v and then ctrl-f1. but it looks bad, contains bad characters (^[), and is generally not cool. when binding to f1, i ...
2
votes
3answers
2k views

Is there any way to launch screen with a background process but have it not terminate when the process exits?

Launching a screen session with a background process using -d -m causes the screen session to terminate when the process exits. Is there any way to get the screen session to stick around after the ...