Questions tagged [gnu-screen]

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
163 views

Is there a way to send a screen command to a screen session "above" my current screen?

I would like to be able to send a screen command to a screen session "above" my current screen session (which is on another server). Imagine the scenario of starting an initial screen session and from ...
Bob's user avatar
  • 635
38 votes
2 answers
40k views

How can I ring the audio bell within a bash script running under gnu screen?

In a konsole terminal window outside of screen running a bash shell with TERM set to konsole-256color if I type: echo -n $'\a' or echo -n $'\eg' or ./ringbell.sh where contents of ringbell.sh is #!/...
Bob's user avatar
  • 635
0 votes
1 answer
1k views

How to determine if a screen is running jobs without attaching to it?

I wrote a zsh script that launches many screen sessions and runs a different command in each of them. When the script is executed there are 72 screens in total, so checking if a job is finished or not ...
Vesnog's user avatar
  • 151
1 vote
1 answer
701 views

How to give each virtual terminal in GNU Screen it's own background color?

I have a dream: I want each virtual terminal within GNU Screen to have it's own unique background color. I think I can fake it in an .bashrc script that emits xterm control codes to set background ...
Jonathan Mayer's user avatar
9 votes
4 answers
5k views

GNU screen changes vim syntax highlighting colors

I am trying to use vim inside a GNU screen session, but whenever I open vim inside screen the syntax highlighting uses completely different colors when compared to when I open vim outside GNU screen. ...
RenatoUtsch's user avatar
3 votes
1 answer
4k views

bash doesn't show current working directory on screen

When using iTerm2 on my OS X, the bash prompt shows my current working directory normally: mbp:tp0 renato$ But when I use screen, the bash prompt changes to: bash-3.2$ How I make the bash prompt ...
RenatoUtsch's user avatar
7 votes
1 answer
2k views

How can I cause vim to copy text to GNU screen's clipboard buffer?

I want to yank text with a command to vim and have it end up in screen's clipboard where it can be pasted to a different application via ^A] later. vim needs to do the copying (not screen's copy mode) ...
gws's user avatar
  • 329
1 vote
1 answer
780 views

screen - reattach last session

Is there a way of getting screen to directly reattach to the last used session if there are multiple sessions available? I always have at least one screen session running on my server, and always ...
Anake's user avatar
  • 309
0 votes
1 answer
207 views

Launch screen terminals with set directory

How can I get my screen session to open different terminals in different directories on login? For example, In my .screenrc file I have the following: screen -t bash0 screen -t bash1 screen -t bash2 ...
rjd's user avatar
  • 101
18 votes
3 answers
47k 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 /usr/...
Rob's user avatar
  • 669
0 votes
0 answers
189 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 ...
Riley Tench's user avatar
1 vote
0 answers
590 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 ...
AndreaNobili's user avatar
  • 7,161
2 votes
2 answers
905 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 ...
Lorinc Nyitrai's user avatar
2 votes
1 answer
509 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. ...
Lindenk's user avatar
  • 191
2 votes
2 answers
5k 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 non-...
Eddy's user avatar
  • 3,397
3 votes
1 answer
422 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. ...
JaHei's user avatar
  • 834
0 votes
2 answers
1k 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 ...
Tihomir Mitkov's user avatar
1 vote
1 answer
1k 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. ...
Mars's user avatar
  • 111
1 vote
3 answers
321 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 ...
Ethan McTague's user avatar
0 votes
1 answer
399 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, I initially copy them to the screen scrollback buffer file. Doing ">" after selecting text ...
Zxcv Mnb's user avatar
  • 131
9 votes
3 answers
20k 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 ...
Pak's user avatar
  • 439
1 vote
1 answer
68 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 ...
Kelvin Ng's user avatar
0 votes
1 answer
192 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 [...
Roman Usherenko's user avatar
2 votes
0 answers
1k 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 (...
The Byzantine's user avatar
1 vote
1 answer
667 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 ...
Chen Levy's user avatar
  • 1,645
0 votes
1 answer
809 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 ...
marverix's user avatar
  • 103
2 votes
1 answer
502 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. ...
Sugitime's user avatar
  • 123
2 votes
2 answers
929 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 set to ...
David Sawyer's user avatar
0 votes
1 answer
380 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 ...
SwiftMango's user avatar
0 votes
1 answer
236 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 ...
Tankman六四's user avatar
1 vote
1 answer
883 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 ...
shwoseph's user avatar
  • 369
3 votes
1 answer
108 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 ...
Matthew Bradley's user avatar
1 vote
0 answers
102 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 ...
user3148653's user avatar
1 vote
1 answer
103 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 ...
Ambarish Sridharanarayanan's user avatar
2 votes
2 answers
1k 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"' However,...
Szymon Toda's user avatar
  • 1,639
2 votes
1 answer
42 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 ...
tpg2114's user avatar
  • 213
4 votes
2 answers
1k 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 $...
Munkymorgy's user avatar
3 votes
3 answers
1k 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 ...
Wesley Bland's user avatar
21 votes
4 answers
20k 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 ...
randunel's user avatar
  • 313
1 vote
1 answer
141 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 ...
nuala's user avatar
  • 316
0 votes
0 answers
137 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 ...
mulllhausen's user avatar
1 vote
2 answers
2k 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 ...
phatmanace's user avatar
11 votes
4 answers
10k views

install screen from source code

I tried to install the screen command on RedHat from source code. But when I run the configure, it returned configure: error: !!! no tgetent - no screen So does anyone know how to fix it?
Negelis's user avatar
  • 111
1 vote
1 answer
5k 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 ...
Clayton's user avatar
  • 13
1 vote
1 answer
956 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 ...
MisutoWolf's user avatar
0 votes
1 answer
190 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) (...
user1050619's user avatar
1 vote
1 answer
469 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 ~/....
sds's user avatar
  • 2,040
6 votes
3 answers
11k 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 ...
Mato's user avatar
  • 83
0 votes
1 answer
430 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 ...
user avatar
2 votes
2 answers
9k 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 ...
Classified's user avatar

1
3 4
5
6 7
14