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.
851
questions
1
vote
0answers
35 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
0answers
135 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
206 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
107 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
127 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
75 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
396 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
666 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
231 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
55 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
24 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
246 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
860 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
2k 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
3k 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
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
153 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
651 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
1k 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
170 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
318 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
565 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
80 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
206 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
81 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
54 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
220 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
2k 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
688 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
218 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
300 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
230 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 ...
1
vote
0answers
45 views
screen shell keeps getting interrupted with output messages
I connected to my tv box through a UART port on the chip and established a serial connection using screen like this:
sudo screen /dev/ttyUSB0 115200
When I hit enter I get shell access and ability ...
1
vote
0answers
184 views
How to switch to another screen to run git commands while resolving conflicts (blocking command)?
Often times, I work out of a single shell when I run git commands. For example, I will start a merge:
$ git merge origin/master
If during this merge there are conflicts, git will "block" the shell ...
1
vote
2answers
482 views
Send a message to a “screen” to be received by a device on /dev
My question may looks trivial... But it's because despite of my long experience of linux/unix/osx systems, I found myself lacking some basic notions.
I created a little bluetooth/arduino switch to ...
1
vote
0answers
66 views
Dell laptop with two external screens
I have a laptop with Linux Mint Mate and this board graphic: Nvidia-G98M - Frame NVS 160M. I am trying to connect one screen Dell Inc. 15", through the VGA cable, and a Screen Asus 22" through DVI. On ...
1
vote
1answer
653 views
Screen creation not working on crontab
I have a problem with one of my VPSs, in the main one, the command
screen -dmS SCREEN_NAME node DIRECTORY
(Create a screen without joining it with the command "node DIRECTORY") works normally, in ...
1
vote
0answers
460 views
Starting a minecraft server using screen doesn't work properly
I'm trying to run a minecraft server on my vServer.
Everything works properly when I start the server like this:
java -Xmx1G -Xms1G -jar minecraft_server.jar nogui
But I want the server to run in a ...
1
vote
0answers
41 views
SSH Tasks to Different Remotes with Control over them
I need to ssh different runs of a program to different compute nodes, namely:
ssh compute-1 'cd dir; ./program input1;'
ssh compute-2 'cd dir; ./program input2;'
ssh compute-3 ...
I also need to:
...
1
vote
1answer
488 views
How do I prevent the Keyboard Interrupt from being sent through the Screen program
I am making a python program, whose output (not input) can be viewed via the screen program. However, the problem is that doing this allows the user to turn off the program via the Keyboard Interrupt (...
1
vote
1answer
2k views
ttyUSB0 serial port crashes and locks, requires computer reset
I posted this question on stack overflow already but after looking up similar questions I realized this is a much better place for it (and it only got 8 views after 10 hours on a Sunday). If necessary ...
1
vote
0answers
101 views
Trying to attach to a screen kills the terminal
I was trying to attach to a screen session on a remote computer, with screen -r, but my terminal got killed (I was trying to attach and see what it is, because I did not remember creating it). Now ...
1
vote
1answer
270 views
problem with U-boot while flashing Linux in sd-card
Please help as it is immense necessary for a project which is to be evaluated coming week. Also, I am very new to this and unable to find help from existing contents available on the Internet.
While ...
1
vote
0answers
267 views
Maintain screen session when executing shell script on boot
Solved:
I solved this problem by introducing a delay before executing the script: @reboot sleep 60; /root/start_server.sh
On Ubuntu 14.04, I have a crontab entry set to run on reboot:
@reboot /root/...
1
vote
0answers
165 views
Bash script for opening screens and compiling the same file
I have written a bash script to initiate separate screen sessions and run a command in each of them that compiles the same C++ source file in ROOT (an object-oriented data analysis framework http://...
1
vote
1answer
201 views
Save views in multiple screen terminals
As I do in default single view screen terminal of ubuntu;
gnome-terminal \
--tab-with-profile=Default --working-directory="some dir" --title="some title" \
--tab-with-profile=Default --working-...
1
vote
1answer
634 views
how to debug/fix screen crashes on startup
(this is a question in reference to the OS X version of Gnu screen. I don't know if this makes any difference - and I guessed that Unix & Linux would have better screen-fu than Ask Different.)
...
1
vote
0answers
561 views
Screen create/resume session, run command an detatch
I am trying to make a startup script for my Minecraft severs but I can't figure out how to:
If the session "Server1" exists, run a command in it, if it doesn't, create the session and then run the ...
1
vote
0answers
989 views
running matlab command line in screen — can't type after reattaching
I'm logging in via ssh to a more powerful computer, on this I start a screen session with screen -S mine and then open a matlab command line via matlab -nodesktop -nodplash and then run within matlab ...
1
vote
0answers
356 views
how to focus different `regions`(Ctrl-a S) via mouse-click in `screen`?
When I start vim in a screen session, and activate the mouse:
:set mouse=a
the mouse remains disabled. I cannot switch tabs via mouse click.
How can I configure screen so that mouse support in vim ...