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
0 answers
13 views

Screen sessions that run on boot immediately die

I have a server running CentOS 7 (for compatibility reasons), set to run a script on boot that contains a bunch of commands to dispatch in screen sessions. So systemd runs the script, and the script ...
0 votes
1 answer
22 views

Execute a bash function inside a detached screen

I want to execute single function from the whole script into a detached screen session rather than to run the whole script inside screen. Can someone tell anyway how can I do it? Like for example #!/...
  • 141
0 votes
0 answers
12 views

Connect to a named Screen session when connecting with ssh

Please note this is not a duplicate of automatically start screen upon ssh login That question talks about setting up the bash profile on the target server to automatically start Screen. That won't ...
  • 2,719
0 votes
0 answers
18 views

Screen fails to properly load when called with crontab

What I'm doing I've been migrating one setup to another, copying configuration and installing dependencies, I was about to be done until screen didn't work as intended. I have a script that I keep ...
  • 101
0 votes
0 answers
33 views

Why does GNU Screen's "-X stuff" stop working after 84 lines?

Edit: it's probably a bug (that it doesn't print any error and return 0), i have notified screen-devel gnu.org about the issue. This script works fine: screen -S foo -dm sleep 1 # workaround https://...
0 votes
1 answer
26 views

Is there a method to list the open windows in /usr/bin/screen to the terminal?

TLDR: Is there a way to list screen windows to text via some screen option? First, some background. I am logging in to a linux server via SSH through Windows RDP. This is an automated login via ...
0 votes
0 answers
29 views

What is the GNU screen equivalent of TeraTerm's Send file function

I am currently following along with some of the basic example applications for the SAM E51 IGaT, one of which is legato_sc_e51_igat_rtos. In the section called Updating the Graphics Assets in SQI ...
  • 101
0 votes
0 answers
23 views

Configure Linux screens to run in alternate directory instead of /var/run/screen

I have been working with screens for just under about a month now and have most everything working as I wish. The only issue now is that my screens will seemingly kill with the user process still ...
0 votes
1 answer
15 views

read characters at specific position in screen session

Is it possible to read characters on screen (precise: in a screen session, coming from legacy software w/ ncurses interface)? Unluckily, the (quite simple) API of the software we are running in a ...
0 votes
0 answers
41 views

GNU screen: -dm / -d -m flags mess up output

I'm using these flags because I'm trying to spawn a detached session and afterwards execute commands in it using screen -S test -X stuff 'command\n'. The command runs continuously so i do reattach to ...
2 votes
0 answers
186 views

How to tell Minicom to translate CP437 characters to Unicode equivalents?

I am using a Raspberry Pi (running Raspbian [based on debian]) to act as a sort of adapter between UTF-8/SSH over TCP/IP and CP437/TTY over RS232/DB9. The RS232 side is a black box that we cannot ...
  • 121
1 vote
1 answer
102 views

How do I get a quick peak at a detached session in (gnu-)screen?

Let's say I have a detached session in (gnu-)screen: $ screen -ls There are screens on: 3629.pts-0.confusion (03/11/22 15:50:21) (Detached) 1 Sockets in /run/screen/S-root. Is there a good way ...
  • 191
1 vote
1 answer
909 views

Change session name in screen

I am running multiple programs with different values for some variables in "screen". I want to change the name of the screen-sessions so I can identify them with "screen -ls" to ...
0 votes
1 answer
145 views

AWS Linux Stuck due to screen command - blank screen - how to get out

I am using AWS Linux (Amazon Linux 2 AMI) and I am totally stuck after using the basic "screen" command. I was following an installation guide and one of the steps was to use just the ...
0 votes
0 answers
194 views

Why does GNU Screen cause me to have to press Esc twice in Vim?

When I launch GNU Screen and then open Vim, to get out of "insert mode", I have to press the Escape key twice, whereas in Vim outside of Screen I only have to press it once. Why does this ...
0 votes
1 answer
307 views

Scroll pages with "screen" in a putty window

I am connected with Windows putty to a Linux computer, and inside this SSH session, I use screen (similar tu tmux). I know that, in order to scroll with PG-UP / PG-DOWN, one has to do this before: ...
  • 1,468
0 votes
1 answer
196 views

Console text editor and Ctrl+S within screen

I cannot use any console based text editors because my Ctrl+S is blocked by console output control -- Ctrl+S normally means stop scrolling under console or terminal, and my screen is eating that key, ...
  • 7,671
1 vote
0 answers
36 views

using tmux and screen via ssh [duplicate]

I am using tmux on a local laptop to connect to a server via SSH in a pane. On that server, I am running several computations via screen. The issue is that the server's screen key bindings such as C-A ...
  • 111
1 vote
0 answers
257 views

Screen as a service on systemd wont start

I'm trying to run screen on a systemd service as startup, so i can check on it later if needed, on an interactive shell, but the session wont stay up, and apparently it doesn't even start. This is my ...
  • 11
0 votes
1 answer
80 views

Create new screen with correct environment and at pwd

It's been brought to my attention from my users that the screen command can be made a little easier to use. Initially, calling screen creates a fresh bash environment at the pwd of wherever the user ...
  • 101
0 votes
1 answer
42 views

Can't record or share my screen

Hi guys I face a problem, I can't share my entire screen on discord or any platform. It just goes black and no one can see anything except my mouse pointer! The problem is not on discord only but I ...
0 votes
1 answer
328 views

How to use tmux between local laptop and remote server

I am currently in a VPN using RStudio which is installed on my local desktop to do some analysis. However, to do analysis, I extract data from my database which is installed on a remote server. What I ...
  • 139
0 votes
1 answer
641 views

Start detached screen over SSH with bash command

I am attempting to start a screen session in detached mode over SSH that executes a bash command inside screen... #!/bin/bash set -e ssh jlroberts@10.0.0.202 "screen -wipe" sleep 1 ssh ...
1 vote
1 answer
240 views

"Maximizing" a pane in gnu-screen

Similar to "Maximizing" a pane in tmux is there a way to maximize a pane using screen?
0 votes
1 answer
106 views

How can I stop or interrupt an accidental gnu screen paste "ctrl-a ]"

I am using gnu screen (byobu really but it seems the keybinding was from screen) and was trying to enter scrollback mode with "ctrl-a [" but I accidentally did "ctrl-a ]" which ...
  • 13
1 vote
0 answers
78 views

Incorrect cyrillic symbols representation in the GNU screen program

I use screen program to run a game server on a VDS. Sometimes I need to see what happens in the game and open SSH session via Putty and then run screen -x ... as usual. Recently I faced with weird ...
2 votes
1 answer
163 views

Key caching in SSH forwarding

What I want to achieve is to connect to server A and execute a script that connects to multiple other servers (serially) and perform a task on each. While I can perform that task using ssh -A, the ...
  • 123
0 votes
1 answer
142 views

How to map the escape sequence of Gnu-screen to an arbitary key remapped with xmodmap?

so i remapped some keys using xmodmap, specifically i remapped one key to the ±-sign. I want to have this key as my escape for GNU screen. I tried adding the following lines in my .screenrc: escape ± ...
2 votes
0 answers
117 views

GNU Screen 'ctrl+a w' doesn't show any information

I am using GNU screen and used Ctrl+a c to instantiate multiple windows. However, when I press Ctrl+a w to list the windows at the bottom of the screen, nothing happens. (I am logged into a Linux ...
  • 21
0 votes
1 answer
66 views

Saving Screen Region Configuration

I was wondering, as I couldn't find it in the man page, if there is a way for the linux screen command to remember the configuration of regions when you disconnect and reconnect. Basically if I run 4 ...
1 vote
1 answer
283 views

Make ssh LocalCommand set GNU-screen window title only when used interactively?

Setup I run screen on a local machine and use different screen windows to connect to different hosts. It would be nice to change window names to the host names automatically during the ssh process. ...
1 vote
0 answers
83 views

Reattaching a screen in a crontab to wait until the screen closes returns "Must be connected to a terminal."

I use a bash script to backup a minecraft world, which is called from a crontab every day. Though the backups are made just fine, I've found an error message in the output: Must be connected to a ...
0 votes
1 answer
450 views

quit qemu ... inside screen inside tmux

I used too many levels of indirection and now I can't get out. I used Tmux from my jump host to get into the dev host. Then I used screen to keep track of what I'm doing on the dev host. Finally I ...
0 votes
0 answers
228 views

Execute a command on screen termination

I have been using screen for a while, but the process I am running seems to terminate at times, closing the screen out. So I have to reopen the screen again. I was wondering if it was possible to ...
  • 162
1 vote
1 answer
880 views

Is there a way to see all output in PuTTy using screen?

I have a linux server that is connected to my ec2 instance and I'm trying to do some debugging when I'm in screen. The issue I'm facing is that sometimes I get big long error messages that fill up ...
  • 111
0 votes
0 answers
69 views

Linux Screen command passed to wrong screen

I have two screen session(eg: A & B ) for GSM modem, However, I am facing a problem where I sent AT commandscreen -S A -X stuff 'AT\r' to both screens(same port) but I have no idea why the command ...
2 votes
0 answers
996 views

screen issue. Getpwuid can't identify your account

this is the result of the strace /screen I am trying to launch screen static binary. I have created /etc/passwd and /etc/group. When I did ls -la /etc/passwd /etc/group I didn't get any errors, but ...
1 vote
0 answers
39 views

How to add colours to GNU Screen

This might seem like an odd/silly question(and I'm not entirely sure this is the right place to ask?), but I have some server programs running on a machine and I'd like multiple terminals to monitor ...
  • 111
1 vote
1 answer
128 views

Disable any non-user changes to screen window titles with zsh

I upgraded my shell to ZSH recently on OS X and one behavior is driving me nuts. I've tried a few suggested fixes and haven't figured it out yet, so I figured I'd try here. When I start a GNU screen ...
  • 21
1 vote
1 answer
119 views

screen - move cursor to beginning of line *in tcsh*

I am a screen noob. I also prefer to use tcsh. I cannot figure out the shortcut for getting to the beginning of the line (e.g. control-a). When I try to suggestion here: screen - move cursor to ...
  • 155
0 votes
1 answer
291 views

Trying to run a game server as a service

I'm trying to use monit to check my game server and restart it if it fails. The monit part is fairly simple to check port 28960 but I'm struggling to run the start script (cod4.sh) if monit detects a ...
0 votes
1 answer
412 views

Linux Screen window title keeps changing

Screen window titles keep getting changed to hostname: everytime I go to a new directory. Need to preserve the manual name changes of the windows. Here is all of the /etc/screenrc config. Please note ...
  • 1
0 votes
0 answers
157 views

Take output from a detached screen running a server application

I wish to fetch output from a screen running a Minecraft bedrock server, after executing list command to list online people on the server using screen -X stuff 'list\n' I wish to gain the output of ...
  • 162
0 votes
1 answer
6k views

Cannot run startx from GNU screen session

I would like to run startx from a screen session. This used to work until a few years back. It seems to have been disabled to prevent people from running their X servers via ssh. Errors: /usr/lib/...
  • 770
2 votes
1 answer
1k views

Load terminal from another window into current split pane in tmux

In GNU Screen, I can switch to any window number within a given split. For example: Enter screen to launch it. Press Ctrl + a c to create a new window. Now there are two windows: window 0 and window ...
0 votes
2 answers
695 views

"for" loop inside a screen

I need to run the same command say 10k times and I don't need it to run in foreground. screen -dmS "ScreenName" for i in {1..10000}; do <command> arg$i; done doesn't work for me. How do I ...
  • 103
1 vote
0 answers
169 views

Some key bindings in `screen` do not work as expected

I recently installed screen for Raspbian Buster using bash and it doesn't seem to work completely. I am able to create a new window using Ctrl+a c and flip between the windows. I can see the windows ...
0 votes
1 answer
38 views

Save screen state before rebooting my laptop

I love using gnu-screen and I'm always opening loads of windows inside it. The problem is that when I need to shutdown my laptop for whatever reason, I have to loose these windows and when I turn on ...
  • 101
1 vote
1 answer
507 views

How to configure .screenrc to bind backspace to ctrl-h?

I'm working with a device console that maps Control+H to delete a character, but would like to preserve my normal workflow of using the Delete key. Is there a configuration I can add to my ~/....
  • 1,913
0 votes
1 answer
2k views

Starting a command in a new screen session doesn't work

I want to execute a command in a new screen session (and detach from it) but I don't get it to work. I tried to start a process in a new screen session and detach from it with this: screen -d -m ...

1
2 3 4 5
13