Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-3
votes
0answers
22 views

Download files from file list wget

I have a file where are written downloading links Google.com/image2 Google.com/image3 Google.com/image4 Google.com/image5 Google.com/image6 i want to download all of them with scripts. If the name ...
0
votes
0answers
7 views

`screen` not creating log file when run inside tmux/byobu?

When we use screen command with -L option, it creates log files of the session with names like screelog.0, screenlog.1 and so on. These log files are created inside the directory in which the screen ...
0
votes
2answers
36 views

Screen session doesn't close after script has run

I write a bash file, which contains screen commands. This bash file is then called from a python script using subprocess. All works perfectly fine. However, the screen sessions don't close after the ...
1
vote
0answers
27 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). ...
-2
votes
0answers
45 views

What does a screen session “attaches to the appropriate terminal” after attaching to a Screen session mean?

From https://unix.stackexchange.com/a/486621/674 when you run screen -r to reconnect to an existing session, it connects to the existing process using a socket, negotiates various settings, and ...
1
vote
1answer
38 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 ...
0
votes
1answer
33 views

Can attaching to tmux sessions be password protected, similar to gnu screen?

I've been using gnu screen for many years, and I've been looking into switching to tmux. I can't figure out how to make tmux require a password when attaching to a session. In gnu screen, I use ...
1
vote
0answers
25 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. ...
10
votes
1answer
382 views

Prevent Logoff from Killing tmux Session

I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did ...
1
vote
1answer
38 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
2answers
102 views

Disable Ctrl+C in GNU screen?

How can I disable the key combination Ctrl+C on GNU-screen? Actually I would have to get used to it, but I press Ctrl+C rather than Ctrl+A+D out of habit.
1
vote
1answer
20 views

Terminating a Screen session after running “screen -D -m”

I have a screen running with a number of sessions, and in one of them, I entered screen -D -m and now that session is just hung. I can't do an Escape, q, or Ctrl+C to terminate. Even after closing and ...
2
votes
1answer
64 views

Why doesn't `netstat` show Screen client but only Screen server process?

From https://unix.stackexchange.com/a/485290/674 Further down in the netstat output is UNIX sockets: Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State ...
0
votes
2answers
30 views

How can I find out the Screen server process?

Does GNU Screen have a server-client architecture model? Is each Screen session a Screen client process? Why can't I find out the Screen server process, but only its session processes i.e. ...
2
votes
0answers
52 views

How to have local echo on with `screen` command?

I tried screen /dev/ttyUSB1 9600,echo but I still don't see what I type.
1
vote
3answers
86 views

Screen and kitty what should $TERM be?

Why does tmux report $TERM=screen-256color Normally kitty reports $TERM=xterm-kitty Which should I use if I run tmux inside kitty? Obviously kitty provides advanced functionality and that makes ...
-2
votes
1answer
88 views

On my local machine, what can Screen bring, which a terminal emulator or nohup/disown can't?

GNU Screen is a terminal multiplexer, which provides Persistence: Similar to VNC, many terminal multiplexers allow the user to start applications from one computer, and then reconnect from a ...
0
votes
0answers
16 views

From guake, pass command to gnome-terminal to kill and respawn guake

Background I have tried to provide an answer to Restart Guake inside Guake. So far, I have achieved to: create a gnome-terminal deamon, from guake: screen -dmS other_terminal gnome-terminal kill ...
0
votes
1answer
36 views

How to read screen's named pipe?

For curiosity, I wanted to read a GNU screen session's named pipe. $ screen -ls There is a screen on: 59750.hello (Detached) 1 Socket in /var/run/screen/S-gergely. And indeed there is a ...
0
votes
0answers
26 views

Can we specify screen command while creating screen session without using .screenrc

Wanted to create a screen session with some screen commands without specifying .screenrc or some other config file using -c option. I see -X an option but seems it only works with screen which is ...
0
votes
0answers
22 views

What baud rate should I set when using screen tty for bluetooth?

I'm paired up with an Xbox Controller and want to see the output coming from the xbox controller in order to figure out its protocol. I'm trying to do screen tty.Bluetooth-Incoming-Port 9600 on my ...
0
votes
1answer
34 views

Running multiple screen commands with crontab and log them seperately, giving each a seperate screen name

How can I log the output of multiple screen sessions which are executed by crontab seperately? Currently I am running them in "screen -dm -L " style in crontab but it logs all the sessions to ...
0
votes
3answers
52 views

Is there a way I can tab between screens without pressing ctrl-a tab every time?

Essentially I just want to press Ctrl+Tab, not Ctrl+A then Tab. I don't believe this can be accomplished with an alias, but have read some stuff about maybe using stty? But I've never used stty and ...
0
votes
0answers
22 views

GNU Screen: how to automatically unsplit once the shell exits?

How to reproduce (note: suppose C-a is the prefix): Spawn GNU Screen. Create a horizontal split (C-a S). Switch to the newly created split (C-a tab). Spawn a shell (C-a c). Now exit from this shell. ...
0
votes
0answers
21 views

GNU Screen: hardstatus truncates color and text whenever terminal window width is small

My GNU Screen hardstatus: hardstatus alwayslastline '%{= kG}%{C}%S: %{c}%{= kG}|%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}' Normally looks like this: However, whenever I ...
1
vote
1answer
215 views

How can I run a bash script with screen in detached mode?

I made a bash script that contains the following: #!/bin/bash screen -dmS xccda "$(cd /root/constella && ./daemon.sh)" screen -dmS xccwa "$(cd /root/constella && ./wallet.sh)" screen -...
0
votes
2answers
77 views

Reopen screen based on title

I created a screen session using the command: screen -t name Based off this name, is there any way to reopen this session (assuming there are no duplicate names) ?
-1
votes
1answer
27 views

Scientific Linux / CentOS Screen sharing

we have Scientific Linux 7 PCs. At one of them I cannot activate the "screen sharing" under "Settings"- "Sharing". I tried to disable / enable the "sharing". I can activate and deactivate the ssh but ...
1
vote
0answers
28 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
11 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
2answers
46 views

Why application does not run from SCREEN without delay?

Suppose we need to run application in screen and keep it running when screen exits. The following command does the job, but only if "sleep 1" is appended to it. Why it does not work without "sleep 1"? ...
-2
votes
1answer
53 views

Can't open a screen on pty freshly created [closed]

I have a program that communicates through a serial protocol uart. I would like to test this protocol using simple terminal emulator running on the same computer. This program opens /dev/tty. I would ...
2
votes
1answer
30 views

How to override the copy-mode behavior of the Home and End keys in GNU Screen?

I use screen a fair amount and would like the Home and End keys to simply go to the beginning or end of the current line, rather than the default, which is to go to the global beginning or global end ...
1
vote
1answer
45 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 ...
0
votes
0answers
35 views

GNU screen kills screens after signout

When I run screen -S <name> -d -m bash -c <command> it correctly starts up a new screen session. The problem is, if I sign out of fluxbox screen marks it as dead??? and terminates the ...
0
votes
0answers
31 views

What obstacles are there to “move” a program to Tmux?

Suppose there is a program mc ran by bash in terminal iTerm. The /dev/tty is exposed by iTerm, the three file descriptors 0, 1, 2 are connected to that device (I know that Bash opens /dev/tty, while a ...
2
votes
0answers
84 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
0
votes
0answers
16 views

GNU screen shows empty terminal until window is resized

Sometimes, when I reattach to a screen session, I get an empty terminal (pressing the up key does not help): When I try to enter copy mode, I get the message Must be on a window layer: If I resize ...
2
votes
2answers
88 views

what does the dashed line on a `screen` multiplexed terminal?

I'm using screen terminal multiplexer. For some reason a dashed line appears on the 10th row. ... [ec2-user@ip-172-31-1-24 var]$ ls account db games lib lock mail opt run tmp ...
0
votes
1answer
73 views

automate the title of gnu screen windows

(got one possible solution on stack overflow : https://stackoverflow.com/a/51769020/9497573) edited to be more accurate I try to make the title of my windows in screen automatically equal to the ...
0
votes
2answers
211 views

Pause a process and bring it back to foreground in a separate screen in Ubuntu [duplicate]

A process put to sleep by issuing ^Z can be brought back to the foreground by listing the running jobs $ jobs and giving the job id to fg %id. But when I tried to list the jobs in a separate screen ...
0
votes
1answer
27 views

Swap content between screens

I'm using Opensuse 15. I use two monitors a small one on the left and big one in front of me. Sometimes I would like to change all the programs from my left screen to the other one and vice-versa ...
0
votes
0answers
97 views

Custom cl termcap causes vim freeze inside gnu screen

I was concerned about the terminal scroll inside screen, besides I have configured altscreen on it only affects some programs, not taking any effect when switching between windows. I know printf '\...
1
vote
0answers
86 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 ...
2
votes
1answer
527 views

Screen active but no sockets in /var/run/screen

I have a game server running on Centos 7 via screen. I can confirm that the game server is running, I can connect to it with the client, and ps faux gives me this output: steam 10111 0.0 0.0 ...
2
votes
1answer
38 views

Multiple instance of same program, obtaining output

I have a shell program in Ubuntu 16.04, named foo, that outputs status update when I press any button. It's located in /usr/local/bin/foo, so I can call the program anywhere. The program works like ...
0
votes
0answers
90 views

Using urxvtc to run a command

I usually used to have this as one of my startup programs in a Linux system: urxvt -e screen But recently I have switched to using the daemon and client of urxvt i.e urxvtd and urxvtc. So I have ...
4
votes
1answer
1k views

How to scroll inside a screen session of an ssh connection?

I ssh-connect an ubuntu server from an ubuntu client machine. And resume my screen session by running screen -d -r name. I'm not able to scroll inside the screen session. I created my screen session ...
1
vote
0answers
33 views

Bash menu from screen -ls data

Given the screen data There are screens on: 27454.world-of-dragons_SERVER (07/05/2018 04:38:56 PM) (Attached) 6223.potato-wod_SERVER (07/05/2018 10:16:12 AM) (Attached) ...
4
votes
2answers
223 views

alias to detach screen when I exit (and kill ssh)

I auto start gnu screen when I ssh into one on my own servers. When I am done, I have to d to detach. Then exit to quit ssh. This means that when I ssh into the server again at some point in time, I ...