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

2
votes
0answers
29 views

“screen is terminating” for non-root

When I try to run screen as a non-root user I get: screen [screen is terminating] immediately, though it works fine for root ls -alh /usr/bin/screen -rwxr-sr-x 1 root screen 465K Jun 9 20:30 ...
0
votes
0answers
24 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
0
votes
0answers
21 views

Why using 'screen -r' on remote host changed my terminal background color?

I have a custom vim color scheme on the remote host. Today I found after I using ssh to connect to the remote host and resume my screen process with 'screen -r', everything I wrote in the vim editer ...
1
vote
0answers
15 views

Why when I run a program in a detached screen section it became very slow?

I am not so into Linux and I have the following situation related a strange behavior of the screen command. The situation is the following one: one a RaspBerry Pi I have installed Raspbian (that is a ...
2
votes
2answers
88 views

java app running in screen starts a process and this child is NOT in screen

I'm running a spigot server in screen, it is a java app. When it crashes and goes down gracefully it calls a restart script as a last action. This script simply contains a java -jar spigot.jar. The ...
0
votes
1answer
13 views

'screen -R' is slow when creating a new screen

When starting a new screen session with screen -R, some text at the bottom of the screen informs me it is creating a new screen. It takes about 5 seconds before bash starts seemingly because of this. ...
0
votes
1answer
30 views

How to set the GNU screen log file name non-interactively

I'm trying to parse the output of a screen session from a script. The man page of screen says I can use the command logfile, but gives no indication of the syntax to use when I launch screen ...
0
votes
0answers
36 views

Detaching from a GNU Screen suddenly clears the terminal

I feel so stupid for asking this, but here goes: I updated my Ubuntu (Server) install today from 13.10 to 14.04. Before the upgrade detaching from screen did not clear the terminal and now it does. ...
0
votes
2answers
24 views

Moving windows in GNU screen

I use GNU screen daily and I wonder is it possible to move windows in the window-list. Say I have Num Name Flags 0 emacs ...
0
votes
1answer
47 views

How to send message both to netcat and other script?

I'm trying to make some client-server interface. Think of it as one-on-one chat. What I want to achieve are two horizontal views. Bottom for my (server) input, top for client output and my input. ...
1
vote
3answers
79 views

How to press Ctrl+a+A

I was reading an answer about placing a tabs bar at the bottom of GNU Screen, and it said to press Ctrl+a+A. Clearly I cannot press A again while still pressing a, and why are the two capitalized ...
-1
votes
1answer
10 views

how to append to screen buffer file

If I have multiple log files open in several screens and I want to copy all useful traces to a single file. So I initially copy them to screen scrollback buffer file. Doing ">" after selecting text ...
0
votes
0answers
94 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
1
vote
1answer
30 views

Auto Complete to Windows input queue from text on printed screen

I have a bin which output hostnames to stdout in following format (Usually, it is ~20 lines): ldn0000000002;ldn0000000040;ldn00000000055;ldn0000000117;nyk0000000001;nyk0000000002;tky0000000001 Then ...
0
votes
0answers
53 views

GNU screen mirroring (-x) with different size monitors/resolution

I'm using "screen -x" to mirror screens across two systems at the same time, but I seem to have an issue with resolutions. On most of my screen windows, the top portion (or bottom) is cut off when I ...
0
votes
1answer
22 views

GNU screen. nothing happens when trying to resume session

I have a D-LINK nas (Linux 3.2.34 armv7l), where I have screen, compiled from sources. Everything was fine until something happened and now I can't resume the session. The symptoms are as follows ...
0
votes
0answers
18 views

How can I start multiple screen windows side-by-side inside one screen instance automatically?

I want to have a desktop/keyboard shortcut that opens a terminal running a screen session that displays top in the upper 60% and iostat in the lower 40%, and possibly pidstat, too. Is that possible? ...
1
vote
0answers
40 views

Creating multiple screens in a for loop to run parellel programs and sending commands to each

Before flagging this questions as redundant, i have read and tried every answer to similar questions with no success I have this loop where it traverses a directory structure, and runs a program ...
1
vote
1answer
40 views

gnu/screen: session-name in status-line

How do I add the GNU/Screen's session-name (as set by C-a :sessionname foo) to its' status line? The manual says that S is the escape code for session name but when I try to add %S to my caption I ...
0
votes
1answer
127 views

Archlinux - Autostart `screen` after boot

I'm building some small internet radio player using Archlinux. All I need right now is to autostart (without login!) script or just command: su -c 'screen "vlc (a lot of parameters)"' vlc_user By ...
1
vote
1answer
35 views

See entire output of process in 'screen'

I am running a script in screen, which takes several days to run. Occasionally, I log back in to check the output, and I'd like to see the output during the times I did not have the screen attached. ...
1
vote
2answers
80 views

Fish shell syntax highlighting looks weird in byobu-screen

When I am in plain fish shell, a command is highlighted like so: but when I am in byobu-screen and type the same thing, I get: When I do a fish_config and look at my color palette, nothing is ...
0
votes
1answer
50 views

How to bind exit to a key?

When I am using screen, every time I use kill, it prompts a confirmation and ask me whether to really kill (which I really do after pressing so many keys). To get around this I type exit instead. But ...
0
votes
1answer
71 views

Remove vertical split bar of a termincal multiplexer, vacating the space instead of hiding it

For the last decade I usually work in a full-screen mode terminal emulator (often xterm), and often with vertical split. The recent GNU Screen offers vertical split with ctrl-a |. 1280×720 offers 160 ...
1
vote
1answer
57 views

why does screen cause problems with sftp?

I love to use screen, but I haven't really had much experience using it over ssh. At work I recently was issued a shell account and I decided to try to configure it so that screen gets run when I ...
2
votes
1answer
21 views

GNU Screen: deleted directory screen was started in

I started screen in a directory I since deleted and every time I open a new window I get the following error: shell-init: error retrieving current directory: getcwd: cannot access parent ...
1
vote
0answers
20 views

GNU screen lost encoding settings after detached and reattached

I set the defencoding and encoding in the .screenrc, defencoding GBK encoding GBK GBK After I detached and reattached the session, the encoding settings don't work. screen -r -d -S session How ...
1
vote
1answer
23 views

Launching GUI apps from GNU screen on OS X

On OS X 10.9.1, when I try to launch GUI Apps on OS X from within a GNU screen terminal, the app simply hangs without showing a window. Launching the same app from a regular terminal outside screen ...
0
votes
0answers
27 views

Increasing scrollback for screen in putty

I use screen a lot. Whenever I scroll up, I see that there is the screen command I used to reattach to the screen. I was wondering if we can increasing the size of scrollback for screen from screen ...
1
vote
0answers
62 views

Case insensitive search in tmux's copy mode?

So in tmux's copy mode you can search text with the ? (at least if it's in vi mode). However, it only finds matches with the same case. I also want matches that have a different case. So, when I ...
1
vote
2answers
73 views

Echo to screen session and to file

I want to execute the following command: echo $RANDOM 2>&1 >> test.txt in this screen session: screen -S test -X eval 'stuff "echo $RANDOM 2>&1 >> test.txt\015"' ...
2
votes
1answer
21 views

Placing an “anchor” in GNU Screen

Usually, especially when debugging code, I have the code spit out a ton of data and since I'm using GNU Screen, I scroll back through the output to see what I need. But it's not always easy to find ...
2
votes
1answer
77 views

Vim not colouring the end of lines when run inside screen

When vim is started inside of gnu screen it does not colour the background after text. Screen looks like it should be setup for handling 256 colours correctly: $ screen $ tput colors 256 $ echo ...
1
vote
2answers
91 views

VIM/Screen background color is inverted for non-text characters

I'm trying to use a vim while inside a screen session. For some reason, the background color for the parts of the screen without text are displaying as dark while the parts with text are displaying as ...
0
votes
1answer
124 views

How to persist `gnu screen` layout after restart

I am using the screen split in 3 with vim on the left, and two other screens split horizontally on the right. I know that when detaching from a screen, I can save the layout with :layout save ...
1
vote
1answer
69 views

PATH not set in GNU Screen, OS X 10.9

I'm not a regular user of screen but every few weeks I use for some delicate tasks. However yesterday when starting I was unable to execute any command (ls, ssh, mkdir), quick debugging revealed that ...
0
votes
0answers
58 views

prohibitive keymapping with putty, gnu screen and vim

I'm logged in to my Debian machine using putty. I have a GNU screen session open and I am running vim in it. the problem I have is that when I go to save the file using :w<enter> this appears to ...
0
votes
1answer
121 views

Gnu Screen: “type” in all windows at once

I read this question on SO about the stuff command in screen. It's pretty useful, but I wondered if there was a way to actually interactively type into multiple windows at once? - stuff seems to be ...
0
votes
1answer
405 views

screen returns [screen is terminating], but never terminates

I recently ran into an issue on my Ubuntu 12.10 server that I can't seem to find a solution for. From my server I run a couple of Minecraft servers on different ports, usually to start the servers I ...
1
vote
1answer
97 views

How do I use shellscripts for rails with 'screen'?

I've recently started Ruby on Rails development, and I'm using Vagrant as a VM to contain my Rails project, because Windows is a terrible OS to use for any sort of Ruby development, due to the ...
0
votes
1answer
61 views

Navigating multiple screens in Linux

I'm in a Linux terminal and created multiple screens. When I try screen -list, I get the following: prem@ubuntu:~$ screen -list There are screens on: 5110.work1 (11/15/2013 02:01:53 PM) ...
1
vote
1answer
115 views

Tab title is wrong with ssh/screen on osx

I am doing ssh -t host screen -D -RR in OS X (10.9) terminal tabs. My ~/.screenrc is identical on all remote hosts and contain the following line: hardstatus string "%H(%n:%t)$USER %h" My ...
0
votes
0answers
44 views

GNU Screen Draw Lag

I like using screen with multiple splits. I usually like 3 sections Resource Monitoring using HTop Text Editor using VIM Command line using Bash My issue is that, when I am doing something that ...
1
vote
2answers
604 views

How can I start new window in the same screen session automatically?

I read How can I start multiple screen sessions automatically?, but I don't understand the first accepted reply: screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" In my case I need to ...
0
votes
1answer
78 views

gnu-screen does not clear all its contents upon leaving it

I am using screen in bash under CentOS. After leaving a screen with Alt-a d, I am back in bash as expected. But there are remnants of the screen output left, in particular the status line (don't know ...
1
vote
1answer
394 views

Screen sessions getting killed but processes still live on and run

This is a weird situation I've run into. We have a test server off site (or off site from where I work). To access the server, I need to VPN into its network. I ran screen to execute a long running ...
1
vote
1answer
78 views

list screen window number bash

I was wondering if there is a way to get which window number of screen that is active? As in: screen -X get-window-number I have found no way to list screen windows to output, only the actual screens. ...
0
votes
0answers
50 views

GNU Screen - String Escapes

Can somebody please explain or point me to good tutorial about "String Escapes" used in ~/screenrc. I am playing with $PS1 and ~/.screenrc. While $PS1 seems pretty clear (colors, conditions, escape ...
0
votes
0answers
44 views

GNU-Screen - how can I attach without detaching

I would like to get Screen to do if following if the screen is not attached elsewhere, attach to it if it is attached do nothing (return to command line) if no screen exists then create a new one ...
1
vote
1answer
362 views

how to paste from byobu's screen buffer (ubuntu 12.04 64bit)

I'm running byobu in gnome-terminal, under ubuntu 12.04 64bit. and trying to copy a screen buffer. i.e. by hitting F7, byobu entering "copy mode", then mark screen text by space key. the question ...