1,038 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
42
views
How to Properly Stop a GNU screen Session and Ensure All Running Processes Are Killed?
I’m using GNU screen to run a service, but when I stop the session, the processes running inside it are not always terminated properly. This results in ports remaining occupied and prevents the ...
0
votes
1
answer
111
views
It is possible to stop a terminal session (screen command) if we find a certain word in its output?
I would like to end a terminal session if a certain word appears in it. Suppose I have three scripts that do the following:
./script1.sh:
#!/bin/bash
for a in water fish eat book human Mexico USA ...
-2
votes
2
answers
94
views
Ansible: How to replace text in a file with special characters in it?
I am trying to replace a text in the file /etc/screenrc. I tried lots of things but getting errors for escaping the string.
The original string is:
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;...
0
votes
0
answers
48
views
How to name each screen? [duplicate]
I have a list of screens like this.
root@123:~# screen -ls
There are screens on:
12497.1 (09/13/2024 10:58:02 PM) (Attached)
12416.2 (09/13/2024 10:51:26 PM) (Attached)
11988.3 (09/...
2
votes
0
answers
357
views
Neovim colorschema stops working if nvim runs within screen 4.9 and Ubuntu 24.04
When I run nvim in gnome-terminal its color schema works as expected:
But after launching the screen, the color schema is broken (it's not disabled/gone, it just colors everything incorrectly):
Some ...
-1
votes
1
answer
112
views
Is it declaratively impossible to get the returncode from a screen command over ssh?
I am writing a python program that needs to trigger long running programs through ssh, and I've decided on using screen.
I need to know the result of the program at some later point, so, following the ...
0
votes
1
answer
105
views
Navigating GNU screen in copy mode
In screen copy mode, shortcuts like "[ctrl a] a" still works to go to beginning of line, but "[ctrl e]" doesn't work anymore to go to end of line contents.
Instead I found [shft e] ...
2
votes
0
answers
101
views
Is there a way to uniquely identify the current Windows Terminal viewport within a WSL2 Ubuntu bash environment?
Or, a way to obtain the current window/tab/pane index numbers for a Windows Terminal "viewport" from within a WSL2 Ubuntu bash shell?
Background and Use Case:
I would like to use Windows ...
2
votes
1
answer
915
views
Why can't keyctl read my keys under tmux or screen sometimes, error: keyctl_read_alloc: Permission denied
Apparently randomly sometimes, under screen or tmux, I can't read user keys from @u, I can read from other terminals, even keys that I just added:
When it works:
$ keyctl pipe $(keyctl padd user test ...
0
votes
0
answers
108
views
How can I specify the Hardware Status Line with a command parameter?
I've read the docs, but can't find how to specify the hardstatus as a command parameter. I only figure out how to do it in the config file or when screen has started.
Any pointers as to how I can do ...
0
votes
1
answer
114
views
How can I start GNU Screen with a specific escape character
I know I can change the escape character with
escape ^Tt
, but how can I start screen with T as escape character.
I've found some references to
screen -e ^Tt
, but that does not work.
Any pointers?
0
votes
2
answers
166
views
How can I make screen session as 'Dead'?
I need to make situation like screen session as 'Dead'?
However, I don't know how to make the session status as 'Dead'
Could you give some advises to make this status?
0
votes
0
answers
65
views
How to make GNU screen create new window on same path under running process (ex: top)
I added my .screenrc below line to create new window on same path referencing from
How can I make GNU Screen start a new window at the CURRENT working directory?
bind , stuff "screen^M" #...
0
votes
1
answer
1k
views
Minecraft Server not restarting with Screen and Crontab upon reboot
I have a Minecraft Server running on an server running Ubuntu 22.04.2 LTS. I have created a start script that uses Screen and works perfectly fine when run using the command line, but doesn't work ...
0
votes
0
answers
31
views
Weird file behavior with git and screen
I recognized on a system I support following behavior. The scripts of the user are python scripts with pytorch as deep-learning cluster. The script is only partially written by the user. The ...