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

4
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
597 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
29k 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
6answers
11k 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 ...
8
votes
4answers
14k 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
677 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 ...
2
votes
3answers
987 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 ...
95
votes
4answers
56k 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
395 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 ...
11
votes
4answers
3k 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
666 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
959 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 ...
17
votes
3answers
11k 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
583 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
341 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
97 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
14k 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 ...
62
votes
9answers
48k 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 ...
26
votes
4answers
22k 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
480 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
647 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 ...
186
votes
11answers
59k 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 ...
38
votes
4answers
29k 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
376 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 ...
6
votes
3answers
9k 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 ...
78
votes
13answers
85k 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 ...
5
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 ...
2
votes
4answers
2k views

gnu screen + putty

Anyone here who knows how to get the +-*/ on the numerical keypad to work in gnu screen from putty? Number work fine but not the operators. the / seems to be bind to renme the current shell or maybe ...
2
votes
2answers
2k views

Using CCZE with multiple log files

I am looking for a solution to watch live several logfiles on ccze. Currently I send a tail of each file in a pipe, this pipe is used by ccze for display all logfiles needed. The problem is that ...
4
votes
2answers
1k views

Can a locked gnu screen session terminal be accessed?

One of the functions of GNU Screen is to lock the screen. The man page says this: lockscreen Lock this display. Call a screenlock program (/local/bin/lck or /usr/bin/lock or a builtin if ...
0
votes
2answers
617 views

directing monitoring function of GNU Screen to the hardstatusline

I really like the monitoring function in screen c-M and c-_ but whenever an event happens (or doesn't happen if c-_) on a screen I am monitoring the message doesn't go to the hard status line I have. ...
3
votes
1answer
330 views

Multiple screen sessions with different layouts: is it possible?

The title pretty much says it all, but here is a short additional example: What I'd like: Multiple screen windows Multiple "contexts": for example a "resources" context, a "compiling" context, etc. ...
1
vote
3answers
2k views

GNU Screen and .bashrc

I am trying to launch GNU Screen using my .bashrc. I'm almost there: if [ -z "$STY" ]; then exec screen -dR else exec gnome-terminal fi This is wrong though! The first case works, screen ...