Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag /monitors.

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

How does gnu screen re-index the window id after the kill window, ensuring that the window id is always incremented continuously?

After gnu screen kills a window, the id of the following window is discontinuous. Chrome's tabs use Ctrl + 1 through Ctrl + 8 to switch, digit is the current actual order of the tabs, not affected by ...
1
vote
1answer
61 views

How to save command line screen output in Linux after running program?

I ran a program that has a good amount of command line output, and it ran on a screen in a ssh server. I referred to this post so that I can scroll through the screen and see the output, but there is ...
1
vote
0answers
20 views

the easiest way to see a grid of many workspaces on the large screen

I have Mint/ubuntu and screen of 4K. is an extension to turn on 4 workspaces to be visible at once? alternatively any tool, which supports grid layout for ubuntu For example: windows are pinned/...
1
vote
0answers
13 views

Possible to use screen loopback to create virtual 300bps session?

I came across this answer here explaining how to set the bit rate in a screen session. The answer is applicable to serial connections. It came close to what I needed to do, but not quite. I'm ...
1
vote
0answers
243 views

Ubuntu 18.04 with Multi-touch screen can't single click

The problem I have is that my touchscreen registers 2-3 mouse clicks per second when I tap the screen. It continues registering clicks if you hold your finger down. Rather than producing a single ...
1
vote
1answer
22 views

GNU screen keeps changing window title on start & exit of vim

My status line in screen is: hardstatus alwayslastline "%{= Wk}%-Lw%50>%{= BW}%n%f* %t%{= Wk}%+Lw%<" This always shows a list of windows with their names. I have also bound C-a T to set this ...
1
vote
1answer
44 views

screen logging - How to ommit interactive shell control characters and prompt?

One of my first questions. Please comment if further explanation or information is required or if the question is not like it's supposed to be here I'm using screen to automatically start servers (...
1
vote
0answers
35 views

How to clear DISPLAY variable in GNU screen

Basically, i need to unset DISPLAY variable in screen if I run multiple commands like: screen -dmS name bash -c 'kodi; unset DISPLAY; emulationstation' I'm writing a little something that will ...
1
vote
1answer
48 views

Process ownership automatically changes to init process on GCP Ubuntu 18.04LTS

We recently moved our development infrastructure from our own old machines running Ubuntu 12.04 to Google Cloud instances running Ubuntu 18.04. Developers usually start some screens and run django ...
1
vote
0answers
114 views

How to Attach Screen Sessions that were Split

I am working with screen and I am having a hard time with reattaching sessions where I split the screen within one session. Is this even possible? I have tried searching for it on here and google ...
1
vote
1answer
39 views

Desktop environment that raises terminal with gnu-screen instead of starting new one

I want to start a gnu-screen session, in a terminal, from gnome. I wrote the following desktop file [Desktop Entry] Version=1.0 Name=Screen Comment=Use the command line Keywords=shell;prompt;command;...
1
vote
0answers
85 views

Detached GNU screen session unexpectedly killed upon terminal close

I am using GNU screen for years now on several servers with the same configuration and never ran into this strange problem: After connecting to the server via SSH I start screen (without options). ...
1
vote
1answer
115 views

Get a list of children process ids (PIDs) running in a screen session

How can I run a command that lists all PIDs of the processes running under a certain screen (suppose multiple bash processes are running, because I have opened multiple tabs)?. I found the following ...
1
vote
0answers
39 views

How to keep screen running after exiting the command that runs in it?

I have the task to start a detached screen session (e.g. when the system reboots) and then to be able to connect to it and interrupt/kill the running process without the screen to terminate. ...
1
vote
1answer
96 views

Scripting “Screen” in Raspbian

I've read lot of different links such as: Run script in a screen https://askubuntu.com/questions/854721/creating-a-shell-script-for-use-with-screen which all seem to say the same thing. I've tried ...
1
vote
0answers
35 views

make logical screen larger than physical screen?

In tmux or screen or other, is there a way to make the logical screen larger than the physical screen - so you can (1) scroll around to see the whole screen, and (2) view different parts of the ...
1
vote
0answers
27 views

How to display message from daemon in gnu screen message line

Let's say I've setup smartd to send out a message any time a SMART warning happens. Is there a way to put this warning into the message line of all running screen sessions?
1
vote
1answer
129 views

Read GNU screen session without attaching to it

I use GNU screen mostly to run commands that become non-interactive after some initial input. I do not like navigating output in screen sessions, I feel it is a bit buggy. Is there a way to access ...
1
vote
0answers
113 views

How to fix gnu screen term detection when started on detached mode?

I'm writing a script that spawns a screen process but depends on some pre-conditions I intend to perform before attaching to it. I noticed that when started in detached mode it does not recognize the ...
1
vote
0answers
120 views

GNU Screen doesn't work for split window

My mac is installed with screen, when I type screen, it prompted with the version Screen version 4.00.03 (FAU) 23-Oct-06. I have multiple sessions created: bash-3.2$ screen -ls There are screens on: ...
1
vote
0answers
80 views

Less is broken inside GNU Screen

When using less or git log, about the first 30+ lines are missing. I'm using GNU screen in a 2x2 grid, less is running in the bottom right pane. tput lines returns 65, but that's the total number of ...
1
vote
0answers
110 views

Making a script execute a command in a screen session of another user?

Is it possible to make a script run a command in another users (user1) screen session that has been started by a script ran by a normal user (user1)? For example, a script run by root directing a ...
1
vote
1answer
55 views

How to start an already named screen session?

I can start a screen session with: screen "commandhere" which will start a screen session, running the "commandhere". The question: how can I name this screen session automatically?
1
vote
1answer
285 views

Problem with screen concurrency

I am encountering a couple of issues while usage of screen. I am using PuTTY Let's say, I am attached to a screen and execute the command ls -la Assuming the output covers my entire screen, I then ...
1
vote
1answer
407 views

ls command not working after killing process [closed]

I am very new to Linux, running an HPC via ssh. I was running a shell script within a screen, and a process was taking too long so I killed it via htop activity. When I reattach the screen that was ...
1
vote
0answers
186 views

gnu screen stops working within applications

I am a regular user of GNU screen. There must be some quirk of my setup that is causing a strange problem that I can't reproduce. Maybe you can help me isolate it. My session has been going fine ...
1
vote
0answers
36 views

GNU screen session stops working

I use screen to run a script which will run for several days (It will train some neural nets). In general it's working. However, it appears that screen and all processes started in the screen ...
1
vote
0answers
22 views

Get screen outpout [duplicate]

I have a screen instance running and i want to get output of that instance current 'screen' without getting in to the session. Will something like that be possible? (The instance in running a program ...
1
vote
0answers
108 views

Change in arrow key behaviour under a GNU screen session

I have noticed a weird behavior in GNU screen session while using arrow keys. I'm sure it is caused because of a change in setting/configuration. I'm looking here for the root cause of it. Problem ...
1
vote
1answer
543 views

Starting multiple Screen windows from shell script uses wrong configuration

When running Screen, I can use Ctrl+ac to create a new window and run vim in each window. Also from Screen, I can run the command screen vim multiple times to open new windows with vim already running....
1
vote
1answer
766 views

is it possible to set timeout on Linux screen session?

I work on Linux servers via SSH (putty) and run "screen" to preserve my sessions so I can attach/detach them at anytime I wish without losing the connectivity/process disruption which is working ...
1
vote
1answer
2k views

Bash script to check whether python scripts are running in screens - restart if not

Hello so I'm currently trying to set up a bash script that starts 5 python processes in 2 separate screens, then checks whether my python scripts are currently running, and restarts them if they aren'...
1
vote
0answers
56 views

Parallel execution in splitscreen?

I'm very well aware, that I can use xargs to run commands in parallel. However since the consoleout of the commands is important I was wondering if I could split the console window similar to how ...
1
vote
0answers
36 views

starting a disconnected screen session at a specified size

I would like to start a screen session (the program named screen) leaving it unattached in the background with it having either a specified size or inheriting the size from the terminal session. It ...
1
vote
0answers
112 views

Run multiple screens and attach them for a split view

So I'm new to screen and I've been using this .screenrc for now - https://gitlab.com/joaopizani/env.screenrc-ftw. I'm trying to make a script that, given a target host, will do the following: Open a ...
1
vote
2answers
457 views

run screen after 'su'ing to a specific user [closed]

so, I have ssh setup on a Linux machine to start screen when user (root) logs in on ssh (on a basically single-user machine) I have dataplicity installed too, so I can access it from anywhere. when I ...
1
vote
1answer
686 views

Bash command to close all detached running programs by GNU screen?

Is there a single command for screen to completely close/quit all running programs in detached mode? I hope to do this in a bash script without any further input.
1
vote
0answers
152 views

Toggle external display under Wayland

Under X I had a xrandr command that would disable the external display or, if it was disabled, enable it and set it as the main/default display. Is there anyway to achieve similar functionality under ...
1
vote
0answers
239 views

Unable to use up arrow key in screen copy mode or windowlist

I am ssh'ing from a terminal window on my Mac to a NetBSD box (our bastion host) and then running screen on the NetBSD box. In copy mode or in the windowlist (which uses the copymode key bindings), I ...
1
vote
1answer
477 views

Run process in specific screen window if it exists, otherwise create that screen and then do so

I have little experience with screen, and recently found out that it has windows. Before this, I was just creating a new session for every process I needed to run (I know, right?). However, now that I ...
1
vote
0answers
66 views

GNU screen: how do I use :aclumask to set permissions to unknown users?

Context I often create a multiuser GNU screen session for demonstration purposes. I do it by creating a named session with: screen -S tutorial And then performing ^A:multiuser on ^Aaclchg ...
1
vote
0answers
161 views

Debian kvm switch reset screen resolution

I'm using debian Jessie with mate 1.8.1, I have 2 computers connected on a single screen with a kvm switch in a resolution of 1920*1200. When one of the computer is left idle for a long period of ...
1
vote
1answer
56 views

How to open a new window using only one shortcut in gnu screen?

To open a new screen, I have to do press Ctrl + a, then c, I often found it cumbersome. I would like to do this with only one shortcut, Alt + c. Also, for moving to previous and next windows, I would ...
1
vote
0answers
52 views

How to make log file name and status appear in linux screen caption line

Any ideas how to get the Linux screen log file name and state appear in a status line (caption line).
1
vote
1answer
155 views

tmux with more terminals than panes

'm trying to migrate to tmux from gnu-screen. There is one feature in screen that I can't figure out how to do in tmux. Specifically, with screen I have one window and I can split that into multiple ...
1
vote
1answer
1k views

Screen session started from rc.local is not visible in screen -ls under root

On CentOS 7. I have edited /etc/rc.d/rc.local, and made it executable, and I am starting a screen session from it. Problem is, when I log to server as root, I am not seeing screen sessions started ...
1
vote
2answers
510 views

gnu screen command for X

The current work flow is like this, a user logs into a session and begins processing. At a later time that user's shift ends. At this point the user is still processing but able to detach from the ...
1
vote
1answer
183 views

“autostart” from screenrc

How can I start some command for certain tabs in screen automatically? I've tried using command directly (screen mc) but it seem to load with broken environment or terminal profile. I've also tried ...
1
vote
1answer
257 views

How do I make my script launch the screen as non-root

I'm running Minecraft, starting it automatically from from /etc/rc.local. I have that run /home/kent-server/mc/spigot.sh and inside that is screen -dms minecraft Java -jar -Xmx5120M -Xms5120M spigot....
1
vote
1answer
159 views

Screen stuff execution delay

I need to press space in two windows at least almost simultaneously to debug my own version of more util. When i'm writing something like : at "#" stuff " " it is working too long (delay about 3 ...