GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

learn more… | top users | synonyms

3
votes
1answer
1k views

How to make IRSSI running under screen in a remote system to beep on my local pc for new messages?

I have an irssi running forever under a "screen" in a remote linux server system. I have fedora 16 in my laptop and ssh into the server and resume my irssi screen when I come to work. But I miss a ...
1
vote
1answer
626 views

Running into errors reattaching to a GNU screen session that tunnels X over SHH

After tunneling X over an SSH connection using screen on the remote, how can I reattach the screen session from another machine and tunnel X to that other machine? I either get "cannot open display" ...
1
vote
2answers
1k views

Load RVM environment in Screen and ZSH

This topic has been driving me nuts for a while now, and I'd like to be able to figure out what's going wrong. I use zsh with screen in my terminal, and have been for a while. However, for whatever ...
1
vote
2answers
974 views

Split vertical for GNU screen in cygwin

In cygwin using GNU screen there isn't the vertical split (vsplit). How can i add the vsplit
1
vote
1answer
311 views

How to get byobu to run screen instead of tmux?

With the recently added tmux support, byobu has started running tmux instead of screen. I did not change any settings. It just started using tmux. I would rather use screen. How can I change this?
2
votes
1answer
393 views

gnu screen: find which screen window has a given running process or variable?

I would like to find out which of my ~50 gnu screen windows has a process running with a specific variable defined in it. For example, about a week ago, I did this: id=ABC123456; ~/run_long_process ...
3
votes
2answers
4k views

How can I start multiple screen sessions automatically?

I'm trying to build a command that launches screen, creates four sessions with different names, and run four different commands. I know how to do this manually: 1. screen 2. ./command1 args 3. ...
0
votes
1answer
635 views

Starting program on boot with screen

Here is my script in init.d (Debian Linux) #! /bin/sh # /etc/init.d/blah # # Some things that run always touch /var/lock/McMyAdmin # Carry out specific functions when asked to by the system case ...
1
vote
1answer
609 views

installing git version of gnu screen on a rh6 linux with no root permissions

How I would go about installing git version of gnu screen on a centos with no root permissions? I tried this: mkdir ~/work cd ~/work git clone git://git.savannah.gnu.org/screen.git cd screen/src ...
1
vote
3answers
797 views

gnu screen: reordering windows like browser drag+drop tab reordering

I have 20 windows open in my screen session, and I would like to reorder the right-most window 20 to say, just between positions 9 and 10 like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ...
2
votes
1answer
163 views

Child processes remain after quitting screen

I'm seeing some strange screen behavior on OSX. When I quit screen, child processes are not killed. $ screen $ tail -f (or some long running process inside screen) Then, I kill the current screen ...
0
votes
2answers
378 views

vim : <c-a> occupied from tmux/screen

I use screen/tmux and vim. In vim, I can't use <c-a> for increment a number, <c-a> is occupied from screen/tmux. any suggestion for a simple map for increment a number ? I try with ...
4
votes
3answers
2k views

How can I run byobu from xterm at starting?

I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ? (mate-terminal from Linux mint especially)
1
vote
0answers
323 views

GNU screen and PID namespaces

I have GNU screen running in LXC container, thus having private PID namespace. I'm trying to attach to that screen from "outside" the namespace. Both screens share filesystem, thus are able to access ...
0
votes
1answer
138 views

How to reconnect a screen session every time terminal is fired?

I wrote this command to reconnect an active screen session when Terminator is opened. It works find but there has got to be a better way to to it This is goes in the Terminator config file (note ...
2
votes
4answers
704 views

Use gnu-screen and X instead of desktop environment?

I have a HTPC with Debian currently installed on. I would like to run applications which got a gui but without using a desktop environment such as gnome, kde etc. I was wondering if running X would ...
4
votes
2answers
1k views

Reattaching screen (having irssi running) forces window resize

Whenever I reattach to my detached screen (containing Irssi), my Putty screen is resized to something it has been at startup. If I change the window size after this, detach the screen and resize it ...
1
vote
2answers
792 views

Reopen screen session after connecting to server

Im working only in a screen session on my vps which runs all the time. When I connect to this server via ssh, I reattach this with a bash alias alias screenr='screen -r -d' What I want: Connecting ...
1
vote
0answers
126 views

Getting the screen to delete contents of less, man, etc. after “q” [duplicate]

Possible Duplicate: Using screen, commands like less and man don't clear the screen afterwards In bash without screen if I do a less or man and then type q to quit, the contents of the ...
2
votes
1answer
390 views

How to open two terminals side by side using `screen`

I use vim a lot. I can open two files side by side with -O option: $ vim -O hello.{h,cpp} Today I tried screen: `C-a |` => split terminal vertically. `C-a <tab>` => switch to the ...
1
vote
1answer
230 views

Reattaching to screen - Linux

We run several screen instances from one box, eg. : 27185.pts-53.CentOS-57-64-minimal (Detached) 27209.pts-53.CentOS-57-64-minimal (Detached) 27281.pts-53.CentOS-57-64-minimal ...
52
votes
2answers
18k views

Rename screen session

Is it possible to change the name of a GNU screen session? Say I called started it with "screen -S foo" and I want to rename it to bar.
2
votes
1answer
92 views

Screen “dies” whenever “ls” is executed

I'm running Screen 4.00.03 on my RHEL 5 server. Wheneven I open a new screen and execute ls the screen dies. This only happens in this server and not in other servers. What is causing this problem? ...
2
votes
1answer
1k views

Screen reattach: Cannot open your terminal

I am trying to use screen with another user than I logged in. The command is started with: sudo -u user /usr/bin/screen -A -m -d -S screen ./nice_command For reattaching I am using screen -x ...
2
votes
1answer
557 views

Move already running program into screen

Is it possible to have a already started program move to screen/tmux? I'd like to have something like the following: program; ^Z screen; fg; I know the above won't work, but is there a way to ...
0
votes
1answer
140 views

Using a script to control a process already running in screen

Due to Gnu Screen being hard to Google for, I've been having trouble finding an answer to this one. As a concrete (what are you trying to do) example: Running a server process (under linux) starts up ...
1
vote
1answer
97 views

How to determine if the client on an ssh connection is using screen

I have an odd predicament. I want to detect on the remote end of an ssh connection if the client is running the terminal inside a screen session. I want to set my prompt based on this. So far I have ...
1
vote
3answers
1k views

Keep GNU screen window open after program terminates?

The GNU Screen manual says: When a program terminates, screen (per default) kills the window that contained it. The (per default) suggests that you can change this option, so that a program ...
2
votes
2answers
313 views

GNU Screen: Combining split-regions and full-screen sessions

Let's say I have three sessions: 0, 1 and 2 I'm on session 0 and I press CTRL-A S to split the screen. Then I select session 1 for the bottom split region, while 0 is in the upper. Can I switch to ...
1
vote
2answers
706 views

How to re-enable function keys in byobu?

I was using byobu on Ubuntu 11.10 Server and I needed to hit a function key in an app, so I hit F9 to bring up the config menu and switched the keybinding set from "f-keys" to "screen-escape-keys". ...
1
vote
1answer
754 views

Scrolling in GNU Screen

I'm seeing something weird in GNU screen. When I use screen on my own Ubuntu 10.04 box, as I enter a bunch of lines in the shell, I can see my GNOME-terminal window gathering my scrollback, and I can ...
1
vote
0answers
84 views

GNU screen session dies when I open vim or vi

Sometimes it dies in the moment a file is opened. Sometimes it allows me to browse the same file and dies on tenth PageDown, for example. I set "term xterm" in .screenrc.
1
vote
1answer
574 views

Using fg with screen

I have a running job in a ssh terminal on an external server. I can pause it with CTRL + Z and resume it with fg. But I would like to pause it, run screen screen -S my_job and get it back in front ...
2
votes
1answer
2k views

Detach screen in screen?

I like to have a screen session set up with two windows side by side (Ctrl+A | key combo). The issue is that sometimes I need to run a server that starts a screen session in the foreground of one of ...
2
votes
2answers
5k views

How to list all users that have terminal sessions, including screen sessions?

I would like to have a list of all users that are active on my Linux system, including those who have running but detached screen sessions. The who command only shows me currently logged in users, but ...
2
votes
2answers
1k views

Is there an application like screen but for GUI applications?

I'm running few projects at the moment, I'd like to switch between them without closing and reopening all applications. Is there a way to do so with some screen-like application? Only way till now is ...
1
vote
1answer
657 views

How do I get the F9 menu in GNU screen on Mac OS X?

Using screen on Mac OSX 10.7.1. Already applied various hacky fixes to get the home and end keys to work, changed the command key to left control key - however now I find the F buttons all do silly ...
1
vote
2answers
818 views

byobu in ubuntu always attaches to the same session

It used to be when I ran byobu I would get a new session with a new socket and I could open multiple windows in that one. Now when I run it it concurrently attaches to the same one existing byobu ...
0
votes
1answer
803 views

GNU Screen: Setting the default baud rate

Does anyone know how to set the default baud rate for GNU Screen? Currently I explicitly specify the baud rate when I open screen like so: $ screen /dev/ttyUSB0 115200 115200 is a magic number, and ...
1
vote
0answers
122 views

How to use cursor keys with a modifier to switch buffers in GNU screen

I want to use cursor keys with a modifier like Ctrl to switch between screen buffers (e.g. C-a [arrow] or C-a C-[arrow]). So far I have tried settings like the ones below with no success. bind ...
0
votes
1answer
158 views

Vim “* and ”+ in screen

I recently started using screen, and I am enjoying it quite a bit. The problem is, when I run vim from within screen, I can no longer seem to access the + register. It used to be, I could say "+dd ...
1
vote
0answers
287 views

LINUX [UBUNTU]: screenlog.0 - modify path

I have a screen command like this: screen -A -h 1500 -m -dmS SKY-001 /home/SKY-users/SKY-001/./ ... I'd like to start the output logging and save the screenlog.0 file to /home/SKY-users/SKY-001. ...
3
votes
1answer
174 views

linux 'screen' command - lowers process priority if detached?

If I run a program within a screen session, and then detach the screen - does the program have lower scheduling priority?
1
vote
1answer
178 views

How to divide screen within a bash script

I have made a short bash script that gets xml data using curl and sends some (it's a chat, in fact) regarding its given arguments. So I can either run the following : watch --no-title myscript and ...
3
votes
1answer
502 views

Write special chars in hardstatus of GNU Screen

I want write the next specials chars to hardstatus of GNU Screen: "↑" (up arrow) and "↓" (down arrow), but it shows strange chars. How can I do this? More info: This worked to me before but I have ...
2
votes
1answer
378 views

gnu-screen: Automatically run script when attach/detach session

I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session. Is there any way to configure screen to do that?
1
vote
1answer
165 views

How to disable input translation for some keys in GNU Screen?

I have Ctrl-Left and Ctrl-Right bound for vim, and would like to be able to use these shortcuts when vim runs inside screen. However, because of Screen's input translation my key presses are mangled ...
1
vote
2answers
8k views

how to reset /dev/ttyS0

I'm trying to connect to a Khepera robot using serial interface (running Scientific Linux 6.1) I used the command screen /dev/ttyS0 to communicate which worked OK, but then I wanted to close it and ...
2
votes
2answers
451 views

How to go past window 9 in GNU Screen without going to Window list?

I use GNU Screen tool to keep my sessions alive on the system. To switch between windows I use Ctrl+a N where N is the number of the window. I want to use similar keystroke to access windows with ...
8
votes
2answers
1k views

Can I name GNU screen sessions?

I use multiple sessions for different things. One for work, one for school work and one each project I'm working on. It gets really hard to keep track of the sessions when screen -ls returns ...