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.

176 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
1k 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.
4
votes
0answers
1k views

Automatically renew kerberos tickets in GNU screen

I have a program (which I cannnot modify) which runs for > 1 day. I want to start it via SSH in GNU screen and detach then. The remote is a Fedora system using a Kerberos-based file server on which I'...
4
votes
0answers
154 views

gnu screen: automatic session on split

Inactive region appears after 'split' command in gnu screen now. You must go to the new region and type :screen. Only after that shell session appears in this region. Is it possible to make new ...
3
votes
1answer
130 views

screen inside systemd wants 777 permissions on /run/screen but 775 outside

I am trying to run an application as a systemd service inside a screen container. When trying to start the service it fails with the error message: screen[11648]: Directory '/run/screen' must have ...
3
votes
1answer
186 views

How do I find what process is running in a particular GNU screen window?

Problem I need to find what process is running on a particular window in screen (in a reasonable amount of time). Scenario I need to use the Session Name and Window Title to find the process ...
3
votes
0answers
493 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 ...
3
votes
0answers
453 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
3
votes
0answers
3k views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
3
votes
0answers
908 views

Capturing screen of “perf top” or other interactive programs

I'm trying to write a script to capture output of perf top Similar to top, perf top detects the screen size and fill information to the screen. But sadly unlike top which has a batch mode, perf does ...
3
votes
0answers
1k views

Read output in `screen` from outside

Suppose I opened up a screen to run some program that outouts some result. Once the program finishes, is there a way to get the result in the screen from outside. For example: I opened up a screen ...
3
votes
0answers
352 views

Screen reptyring screen

Having recently discovered reptyr, my first action was to do everything I could to break it. This included reptyring screen into a screen session as follows: $ screen My zshrc cats some stuff here. $...
3
votes
1answer
680 views

Convert screen log to html

I would like to log actions made in a terminal window, and convert the log to html on fly. I already tried commands script/screen + ansi2html, but the result is not perfect: the escape sequences for ...
3
votes
0answers
499 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
3
votes
0answers
286 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi PS1="\...
3
votes
0answers
72 views

Can I avoid screen from creating inner screens?

I just started using screen and "screen inception" makes learning screen even more confusing. Can I avoid screen from creating screens when I'm already inside a screen? I'm using fish as my shell if ...
3
votes
0answers
2k views

How to efficiently use Console2 with screen/tmux/byobu?

I'm using Console 2 and msysgit's bash to SSH into my Linux machines. There, I'm using screen (but considering tmux and/or byobu), but currently simply with one single-terminal session per Console2-...
3
votes
1answer
187 views

How to set unbuffered IO in `screen`?

I use screen as a minicom replacement, but the only problem is I don't get all output immediately, because of buffering. Is there a way to turn off buffering for screen?
2
votes
0answers
16 views

Is there a way to get the last n lines of screen output programmatically?

I'm working with a detached screen session, and I'd like to be able to check what the last lines of output on the screen session are (for example, to determine if a password prompt is being displayed)....
2
votes
0answers
28 views

bash edit-and-execute-command shortcut under screen

How can I reconfigure screen's keybinding C-x (lock the screen, useless for me) so it doesn't mask bash's edit-and-execute-command bound to C-x C-e?
2
votes
0answers
791 views

How do you unsplit all split panes in tmux?

In short, I'm looking for the tmux equivalent to the gnu screen 'only' command (Controla, Q). In gnu screen I will often split the window any number of times, then when I'm done and want to go back ...
2
votes
1answer
74 views

Restart shell script if not printing

I have a shell script that just calls a Python file in loop e.g.: for i in $(seq $start_index $end_index) do python my_script.py done The Python process halts when it is not able to generate ...
2
votes
0answers
720 views

Python open screen and execute inside screen

I have a py script S1 that I would need to execute inside a screen. On an end-user point of view, I would like them to just execute another python script S2, which will open a screen and execute the ...
2
votes
1answer
297 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 ...
2
votes
0answers
72 views

Redirect all keyboard input to a detached screen session

I'm trying to build a headless system using a Raspberry Pi; I have two programs runnning on it, one to catch all the input from a barcode reader (a simple keyboard emulation device) and one to display ...
2
votes
1answer
48 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 ...
2
votes
0answers
253 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 ...
2
votes
0answers
84 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) ...
2
votes
1answer
89 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 ...
2
votes
0answers
46 views

Stuffing text into a screen tab only after the shell has loaded

I'm setting up my screenrc to open several tabs and already insert commands such that I only need to press enter to start some process. Here's an example screenrc: screen -t test stuff hello However, ...
2
votes
2answers
704 views

Screen loses permissions after ssh disconnection

I have a long running bash script that I run on a remote host with screen, so I can log off ssh. When I come back after some time (after logging off), the screen terminal no longer has permissions to ...
2
votes
1answer
856 views

How to extend columns when export COLUMNS doesn't work

UPDATE: it appears to be related to GNU screen and termcap: see new clues at bottom. I'm running Bash 4.3 on a small embeddable device, and having a problem convincing it that I have more than 80 ...
2
votes
0answers
57 views

GNU screen freeze session if SSH is not connected

I have a dedicated server (Inmotion) running a Java XMPP server through a screen session to keep it alive. Sometimes, after a long period, the execution of this Java XMPP server freeze and then when I ...
2
votes
0answers
225 views

Run server program and allow user to attach to it using SSH

What I'm trying to do is run a program at startup (a game server in this case, started using systemd) and allow a specific user to remotely "attach" to it using SSH. Currently I have it set up to ...
2
votes
0answers
926 views

Send data to a serial port via screen

I've connected to a serial port via screen /dev/ttyACM0 and can read the input, but can't see the text I'm typing and nothing is being sent after I press enter. Is it possible to send data from ...
2
votes
1answer
63 views

Sending a text from script to a screen

My whole task sounds like this "Show how many users are working right now, whenever someone has logged out or has logged in, print the new amount of users. Create a new screen and print there text ...
2
votes
0answers
260 views

Start detached screen session with more than 80 columns?

Does anyone know a way to change the default 80 columns width when starting screen in 'detached' mode (screen -dm) ? Smart curses apps like htop handle resizing when attaching from a wide terminal ...
2
votes
1answer
439 views

Prevent “Screen” session weird characters

Logged into a screen session, when I press Backspace, Del, Down, Left, or Right while there is nothing for those keys to do, then a weird character appears that does not affect the input. The ...
2
votes
0answers
1k views

Byobu - New window with same ssh session?

Is there a way to configure Byobu to use same ssh session in a new window. For e.g. Open Byobu window ssh into a remote host Press 'F2' to open a new window. This opens the terminal with my ...
2
votes
0answers
138 views

Screens die even though process is still running

I have a problem with running an irssi in a screen session on a tomato usb router setup. Screen reports session as dead, even though the process is still running (both for screen and irssi) Screen ...
2
votes
1answer
1k views

VT100 terminal emulation to use with a Java-based 8-bit computer emulator

I'm successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is: screen -istrip /dev/ttyUSB0 Screen does the ...
2
votes
1answer
333 views

GNU Screen Caption

I have this line in my .screenrc file: caption string " %{kw}%-w%{ky}%n-%t%{-}%+w" This is the caption output, where 0 is the active screen: 0-bash 1 bash 2 bash How do I customise %-w and %+w ...
2
votes
0answers
85 views

.screenrc setting to make the silence notification to stay

Is there an option for .screenrc file so that the silence message <c-a>_ stays on the terminal until I press any keyboard button?
2
votes
0answers
159 views

screen toggle windows doesn't work with custom command key

I've been using GNU Screen for a while now, but I prefer mapping the command key to something other than C-a, as I use that to go to the beginning of a line. For a while now, I've been running screen ...
2
votes
1answer
1k views

My bash prompt is not working in `screen`

On RedHat, screen resets my bash prompt. I set PS1=\u@\h:\w in ~/.bashrc and ~/.bash_profile. I added shell -$SHELL as well to ~/.screenrc. But, when I open a brand new terminal window, the prompt ...
2
votes
1answer
782 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
1
vote
0answers
19 views

Show GNU screen session name as Cygwin window title

I use Cygwin with a xterm terminal to ssh into a server that gives me a csh prompt. I then do screen -S new_session. The window title of Cygwin then shows "[screen 0: csh]", which suggests ...
1
vote
0answers
37 views

Configure a screen session to behave exactly like a xterm terminal

I want to be able to configure a screen session through screenrc or within a session to behave just like an xterm terminal. Currently I have a c# app that uses ssh.net libraries to ssh to a Linux box ...
1
vote
1answer
22 views

no alsa-sound in systemd-service (using screen)

I just set up a systemd.service in order to run cmus (a console-music-player) detached to a screen at startup. i don't get sound, when starting via remote with no user logged in to the machine. i do ...
1
vote
0answers
13 views

How to pass code to attached screen

I am running an R script using a Linux Workstation. I am new to Linux - thanks for your patience! I first ran screen before running my R script, Rscript myRscript.R After checking in on my script ...
1
vote
1answer
29 views

How to control systemd service using screen?

I've set up a systemd service to run my Minecraft server. Now, I need it to repeat the start script when the server crashes. Here's my code so far: #!/bin/bash while true; do cd /home/mcserver/...