We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
0answers
9 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 ...
0
votes
0answers
6 views

Replace a (GNU) screen with another process, like bash “exec”?

I love (GNU) screen. I always operate from within a screen. I launch it automatically from my .bashrc. Sometimes I need to SSH into one host to then jump from there to another (not directly ...
0
votes
1answer
64 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
1answer
49 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 ...
0
votes
0answers
19 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 ...
0
votes
1answer
29 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/...
0
votes
1answer
70 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
2answers
24 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 ...
0
votes
0answers
38 views

Process in ssh session is still running even after all screens are killed

I logged via ssh to AWS ubuntu server. Goal was to test run a neverending bash command in background, even after logged out of ssh I created a screen with screen -S myjob command I runned my bash ...
1
vote
0answers
54 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
0answers
26 views

Terminal line overwritten in a GNU screen session

I have this problem while working on a screen session that the terminal line gets overwritten. If I detach from the screen session then I don't run into this problem. Here are some of the ...
0
votes
1answer
30 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 ...
0
votes
1answer
64 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 ~/....
0
votes
0answers
25 views

Cannot close ssh session immediately with screen command after starting remotely gdbserver with a c++ app

I want to debug a c++ app on a remote server and I want to open gdbserver via ssh and then close the ssh session immediately while the gdbserver remains open. ssh user@xxx.xxx.xxx.x 'cd /remote/...
0
votes
1answer
98 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
vote
0answers
11 views

How to make gnu-screen String Escape “W” use my special format?

The default %W will get this format windowtitle windowname For example 0 zsh 1 zsh But i want to use this instead [0][zsh]
0
votes
0answers
10 views

Using screen to protect against network issues and local machine stopping

I know that I can use screen to connect through ssh to a remote machine using ssh -t <server.domain.name> screen -R But screen will 'keep' the session only if I detach it nicely using Ctrl A-D ...
2
votes
1answer
68 views

Terminal escape sequences in GNU Screen

So I'm quite confused with the concept of escape sequences in a terminal (or terminal emulator to be more precise) and how they relate to the screen bindkey command. I was looking at some sample ....
3
votes
1answer
108 views

No scrollbar after starting a `gnu-screen` session in WSL

I am using Ubuntu 18.04 (WSL) on Windows 10. I can use the scrollbar with mouse or touchpad before starting a screen session. But, once I start a screen, I lose the scrollbar (gray out). What I did: ...
0
votes
0answers
16 views

How do I create a seperate user login management from a single user in linux?

I work in a company. My team has 15 members. All of share a single server. This is managed by our IT team. All of us have one login id/pw. We can do sudo operations on it. Since, people use screen/...
0
votes
1answer
25 views

Screen as a Service on Ubuntu 18.04

I have an application that occasionally closes due to some runtime error or DDOS attack. The application runs inside a section of the Screen, so I need to access the server and type the command screen ...
2
votes
0answers
470 views

How to get the “screen” utility to work on MobaXterm?

I got this error when I first tried to use the screen utility: $ screen Directory /tmp/uscreens/S-Wildcard must have mode 700. Oddly enough, I don't seem to get this error again; I get this ...
0
votes
1answer
30 views

“screen” is losing umask setting

I am using the screen tool quite a bit. Recently I discovered that the umask within screen is different from what I am setting in my .bashrc. $ screen -v Screen version 4.00.03 (FAU) 23-Oct-06 $ ...
0
votes
0answers
33 views

bash / gnu screen automation - resulting terminal size is wrong

I'm trying to create a bash script that (1) creates a screen session, (2) starts multiple windows inside it, (3) sources a custom environment script in each of them, (4) changes to a particular ...
0
votes
2answers
45 views

How can I create, using one command, a GNU session with 4 windows, each running different command?

I'm trying to make screen start in background every time I boot. I need to have at least 4 windows, each running different command automatically. How can I do that?
1
vote
1answer
115 views

How to create a screen and execute a sudo command

I need a script to create a screen session and run a command inside, then detach and proceed with other screens. So I need something like screen -S vault -d -m $HOME/vault/v.sh. However, v.sh requires ...
0
votes
1answer
41 views

How can I use the bind command for remapping keybindings for screen?

I am trying to use the bind command to remap C-a keybinding in screen, as I use C-a for getting to the beginning of a line. According to the screen documentation I should use the bind command for ...
0
votes
1answer
30 views

GNU Screen capturing <esc> key?

GNU screen is capturing my ESC key causing problems with vim. Is there any way to change that behaviour in screen? I believe it enters the command mode however I can do that do that with C-a: This ...
0
votes
0answers
30 views

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

I'm trying to do screen tty.Bluetooth-Incoming-Port 9600 on my mac, but I'm not sure about my baud rate. How can I determine this? It's just giving me a "Cannot open line" error.
1
vote
0answers
87 views

How to cancel a Ctrl-A in screen

Sometimes when I'm using my screen session I prematurely type Ctrl-A and then decide I want to remain in the current window and type something in the terminal, but anything I type next will be ...
0
votes
1answer
114 views

How to display images in hterm + screen

I am using the SSH extension on CrOS to connect to another machine. I would like to use the hterm-show-file script to display images directly in the terminal. This works fine in a normal shell, but ...
0
votes
1answer
51 views

user dissapered after connection to GNU Screen

After the user logged in and before he ran the GNU Screen, [root@15inch ~]# w 11:45:17 up 3:44, 2 users, load average: 0,00, 0,02, 0,00 USER TTY LOGIN@ IDLE JCPU PCPU WHAT user ...
0
votes
0answers
257 views

Remote screen command through ssh, unable to see active sessions

Let's say i'm running a comand using: ssh user@ip screen -dm cat file or a command like: ssh user@ip screen -dm -S sessionname cat file Why, in both cases I can't see active screen sessions and so, ...
0
votes
1answer
121 views

Use .bashrc in a detached screen

So, I've got a bunch of export ... environment variable lines in my .bashrc, and I would like to call some programs (specifically Jupyter notebook) that need access from those notebooks from screen, ...
1
vote
1answer
477 views

Set terminal width in screen using PuTTY connection

I'm connecting from PuTTY on a Windows box to a RHEL server. I like to do my work in screen, and I like a terminal window that's wider than 80 characters. I have my PuTTY terminal set to be 120 ...
1
vote
1answer
300 views

unset PROMPT_COMMAND with screen

Recently, for seemingly no reason, I've been getting the same issue as this thread: bash how to remove "__bp_precmd_invoke_cmd" error? However it only happens when I enter a screen session....
1
vote
1answer
104 views

GNU screen won't send control character from config file but will when set manually

My .screenrc has the following line: escape ^Jj However, I can't manage to send a literal ^J in a screen session based on this! Version: Screen version 4.06.02 (GNU) 23-Oct-17 Host: Debian-based ...
0
votes
1answer
195 views

What single command in screen, can show a preview of all currently active windows?

Am actively using screen, but wonder, as I've not seen anywhere, hint of a single command to do the above. Can anyone else using screen here, suggest something? Am thinking of a feature similar to ...
4
votes
4answers
7k views

How to detach ssh session without killing a running process?

I started a test filesystem resize on a server through ssh, but totally forgot to do that on a screen session. Now it is running, and my laptop has very slow internet. Is there any way that I can keep ...
1
vote
1answer
47 views

What should i do if i want to run C-a " upon starting screen?

I'm currently starting screen as part of my .bashrc, but i want the first thing that shows up to be the same thing as when you run C-a " when screen is already running. I know i could run screen -ls ...
0
votes
2answers
43 views

Watch (rotating) log in screen

I'm running a mailserver which I connect to using SSH. My .bash_profile is configured to attatch a SSH session to a certain screen session. Now I'd like to have a log (e.g. the syslog) printed to one ...
0
votes
2answers
151 views

ssh + screen : how to ?

I am trying to launch a software through ssh : I can do : ssh -t user@xx.xx.xx.xx screen -S datanode -d -m ~/hadoop/bin/hdfs datanode But ssh -t user@xx.xx.xx.xx screen -S datanode -d -m ~/...
1
vote
1answer
144 views

How to detach instead of terminate a GNU Screen session inside xterm when pressing C-c?

On X startup the following is ran automatically: xterm -e screen -rS app1 This opens up an xterm session and attaches the screen of app1, which was already running in a detached state. What I'd ...
5
votes
1answer
4k views

Systemd service - Python script inside Screen on boot

Im currently running a python script inside a Screen session through this script in rc.local: screen -L -dmS pi python /home/pi/truck/main2.py & But I would like it to run through systemd so I ...
0
votes
0answers
123 views

GNU Screen + Putty + Windows 10 constantly gets glitchy

I'm using Putty on Windows 10 to connect to a Linux machine and attaching to a GNU Screen session. Using all the same settings (exactly) on Windows 7 worked without any issues, but on Windows 10, I ...
0
votes
1answer
1k views

Why does Ctrl-C terminates screen when ran in detached mode?

If I use Ctrl-C in a screen I ran the "normal way" using screen -S screen_name, it behaves as expected meaning it will interrupt whatever command the screen is running but won't terminate the screen ...
0
votes
0answers
72 views

screen command called from within a script, within a “su -c” command creates files on root directory

I'm executing this script from user root in directory "/": su -c "sh /home/bob/start_server.sh" bob and "start_server.sh" contains screen -d -m -S serverscreen mono startserver.exe However all the ...
1
vote
2answers
2k views

How to detach from a screen session from within a tmux session?

How to detach from a screen session from within a tmux session? I've seen posts of how to detach from screen within screen and from tmux within tmux, but none of them worked for me.
0
votes
1answer
62 views

How to put screen in a sequence of commands?

Hello I'm trying to merge a group of commands in a single line using semicolon ; pkill screen ; screen ; cd directory ; sudo xx So basically what I'm trying to do is to kill all open screens then ...
0
votes
1answer
1k views

Where do I find the default baud rate for screen (on Mac)?

This command works fine: screen /dev/ttyS I don't need to set a specific baud rate. Do you know what the default baud rate is, or where I can find the default baud rate that is used?