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

77
votes
4answers
42k 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
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 ...
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 ...
10
votes
3answers
2k views

How do I prevent GNU Screen from reseting my prompt?

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....
0
votes
2answers
893 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 ...
13
votes
3answers
10k 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
565 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
95 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/
10
votes
3answers
13k 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 ...
54
votes
9answers
39k 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 ...
23
votes
4answers
19k 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 ...
4
votes
5answers
460 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
578 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 ...
168
votes
11answers
53k 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 ...
31
votes
4answers
22k 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
371 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
7k 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 ...
60
votes
12answers
64k 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
77 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
1k 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
608 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
306 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 through! The first case works, screen ...