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

2
votes
2answers
283 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
475 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 ...
3
votes
1answer
668 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
568 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 ...
27
votes
7answers
20k 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
585 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 ...
21
votes
8answers
16k 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
1k 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. How can I configure vim to move around instead?
93
votes
7answers
42k 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
213 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 ...
5
votes
2answers
2k 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
672 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 ...
18
votes
3answers
41k 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 ...
8
votes
7answers
13k 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 ...
9
votes
4answers
20k 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
754 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 ...
31
votes
11answers
10k views

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

ssh -> UNIX screen and keymaps (macbook delete key in particular)

Over the years I've had various keymap issues in UNIX screen through SSH, and I assume others have as well. My question has two parts: When I SSH into my Ubuntu Dapper server (I know, I'm moving to ...
124
votes
3answers
74k views

Moving an already-running process to Screen

My office job routinely sees me connected to a Linux box via VNC. Sometimes I start a remote job on the console, and realize later that it runs much longer than expected. (Should have started that ...
1
vote
2answers
422 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
2k 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 ...
2
votes
2answers
2k views

Can you screen a running programme? [duplicate]

Possible Duplicate: Can I nohup/screen an already-started process? GNU screen is great for long running programmes. You can start your programme in it and disconnect and bring your laptop home. ...
12
votes
4answers
4k views

How do I prevent GNU Screen from reseting my prompt? [closed]

When I run screen it changes my prompt. How do I prevent this behaviour? For example: $ echo $PS1 \[\e]0;\h:Prod\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ $ screen $ echo $PS1 [\u@\h \W]\$ ...
4
votes
2answers
2k views

How to install screen-profiles on debian?

I have a debian server and want to use the nice screen extension "screen-profiles". I think this comes from Ubuntu. Is there a way to get it on debian and how? Thank you
0
votes
4answers
3k views

Redirect Cronjob output to an running screen session?

Is it possible to start a screen session, set up an cronjob, and redirect the cronjob's output to the screen session? Would be great to follow the programm's output ;-) Greetings....
3
votes
2answers
733 views

stdout to gnu screen copy buffer

Is there a command in GNU Screen to direct standard output to the copy buffer I've been doing alot of work with files, it's great to copy and past the filenames I want into commands e.g. ls | grep ...
0
votes
2answers
1k 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 ...
19
votes
3answers
12k views

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

Why is sourcing in .screenrc not supported?

I would like to have the following code in my .screenrc source /Users/masi/bin/screen/file.screen However, I observe that sourcing at .screenrc is not supported. Whi is sourcing in .screenrc not ...
2
votes
1answer
344 views

Unable to have a Vim-like window-size-increase in Screen

I see where I have two windows open in Screen's split. I would like to increase the zise of the window at the bottom by Ctrl-A [number] + similarly as you can do in Vim. I did not find a ...
1
vote
1answer
99 views

Security concern when sharing screen sessions

What are the dangers involved regarding security in sharing a screen session with other users? I plan to follow this guide: http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/
11
votes
5answers
15k views

Set xterm (PuTTY) window title when using screen?

I am trying to get screen to set my xterm title. I have this working outside of screen, but screen keeps whatever title was in place when I started it. Here is my .bashrc: function ...
77
votes
9answers
60k views

Is it possible to detach a process from its terminal? (Or, “I should have used screen!”) [duplicate]

Possible Duplicate: Can I nohup/screen an already-started process? On Unix (specifically, Linux), I've started a job in a regular ssh->bash session. I'd like to leave work soon, but I now ...
31
votes
4answers
26k views

putty and screen and scroll-back buffer [closed]

When I use screen inside a putty session, I can't seem to use the scrollback buffer of putty to look at whatever just scrolled off the screen. Instead, I just see what was happening in the putty ...
5
votes
5answers
510 views

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

xrvt/xterm flickers in Ubuntu when using screen

I have xrvt running with the screen command, but it flickers every time I press, say the right arrow key. (It flickers white). Any ideas as to why? Ps. Gnome terminal is hard to set up with 6x13 ...
210
votes
11answers
66k views

Can I nohup/screen an already-started process?

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in ...
0
votes
5answers
1k views

How can I lauch a GNU screen from jailshell (no pty) [closed]

I have my personal stuff hosted with a company that uses cpanel. It seems that a "feature" of cpanel is that the hosting company can use their "jailshell" when granting (terminal, not goofy AJAX faked)...
46
votes
4answers
38k views

How can I launch a screen session with a command over ssh on a remote server from my desktop?

I want to be able to launch screen sessions on remote servers from a single ssh command on my desktop. However, screen seems to need a terminal, which is not available when running a command through ...
3
votes
3answers
383 views

Is is possible to reattach a telnet connection?

Our network involves a series of dumb text terminals which telnet into a SCO OpenServer 6 server. Occasionally, one of these terminals will crash, forcing the operator to move to a different terminal ...
9
votes
3answers
10k views

Setting $TERM for gnu screen

So I have screen compiled with 256 colors, running on Konsole in 256 color mode. If start screen, the TERM is set to "screen". If I manually export the TERM to screen-256color everything works ...
94
votes
14answers
114k views

How to reconnect to a disconnected ssh session

Is there a way to connect to an ssh session that was disconnected? We are having problems with our network connection to a remote site that we are working on separately; however, in the mean time we ...
2
votes
1answer
79 views

checking on remote applications

I want to run and check on apps (like rtorrent) running on server via ssh. I'd prefer not to use background/foreground stuff. What I really want to do is have a screen session on this server all the ...
6
votes
2answers
2k views

Right aligning text in GNU Screen caption or hardstatusline

I have this in my .screenrc caption always "%{= Kw} [%0c] %-Lw%{= KW}[%50>%n%f* %t]%{= Kw}%+Lw%=| %l | ${FULLHOST}" It normally displays something like this: [01:06] 0$ vim 1$ top 2-$ tail [...