Questions tagged [gnu-screen]

GNU Screen is a software application that can be used to multiplex several virtual consoles.

GNU Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

310 questions
0
votes
1 answer

Better Method of Opening TTY Permissions

At work, I have a few legacy servers that I log into as root, and then su down to a user. I continue to run into an issue where after doing so, I am unable to run screen as this user. I don't want to open screen as root, because then I have to…
VxJasonxV
  • 911
  • 1
  • 16
  • 29
0
votes
0 answers

Automate logging in to separate cluster nodes for monitoring (htop)

I login to the cluster and login to say N=3 nodes. Then, I laboriously open the N panes in eg tmux or kitty, ssh onto the login node to each, then ssh onto the specific node for each of the N nodes, then start htop N times in each pane, in order to…
georg
  • 111
  • 2
0
votes
1 answer

Custom systemd unit fails to start gnu screen and fork to background

I am trying to make systemd unit that starts a script inside GNU screen headlessly. I did base my work here on a couple of questions some had that were related. I also tested the ExecStart line in a shell as the user it should start for, and it…
Kaizushi
  • 1
  • 1
0
votes
1 answer

Screen inside Mac OS seems to go idle

We have Mac Mini with a classic Mac OS install (12) that runs a command every x minutes within a screen instance using a pipenv command that look like this. [scripts] some_pipenv_command="sh -c 'app_dir=$(pwd); while :; do cd $app_dir; python…
AsTeR
  • 257
  • 4
  • 13
0
votes
1 answer

Quitting screen without a prompt

I would like to exit my active screen session and kill (not detach) the session. This is done with CTRL + a and then k, however screen then then prompts you "Really kill this window [y/n]" and you have to respond with y to kill the session. Is there…
Rino Bino
  • 511
  • 5
  • 21
0
votes
3 answers

How to run Python venv script with screen in crontab

I have a sh script with the following content: screen -mdS myscript /home/myscript/myscript_env/bin/python3 /home/myscript/bot.py This script executes a python script and opens it in a new screen. It works fine when executing the sh file in the…
Steven2105
  • 51
  • 2
0
votes
0 answers

Starting screen session as a service, how do I transmit the screen session output (back) to the service log?

I have an application that is a interactive shell. I want this application to run as a service. To be able to access the shell while the service is running, I figured its best to start the service as a screen session that launches the…
birgersp
  • 107
  • 5
0
votes
2 answers

Howto start and detach screen with user environment on startup?

I want to start screen and put a couple of programs running inside on startup. I've seen many similar posts but none answered my question. so I put in rc.local following 2 lines: screen -dmS scr bash -c 'ytop; exec bash' screen -S scr -X screen…
DenisZ
  • 38
  • 7
0
votes
1 answer

Cannot stop screen started with systemctl start

On ubuntu server 20.04 I created a service definition for a Minecraft server within a screen session like that [Unit] Description=Minecraft Server After=network.target [Service] User=minecraft Nice=1 KillMode=none SuccessExitStatus=0…
Jan
  • 111
  • 3
0
votes
1 answer

Upgrading GNU screen in-place without restarting

I am looking into upgrading GNU screen following CVE-2021-26937. My question is simple: can I upgrade GNU screen without restarting my current screen, e.g., by a kind of in-place upgrade mechanism where the new version of screen would take over the…
a3nm
  • 868
  • 6
  • 12
0
votes
0 answers

Do not log colors to screen logfile?

Running an application inside screen to log all output including stacktraces not caught by the applications logging. Screen is however logging all formatting like ^[[58;1H^[[58;1H which results in logfile being difficult to read and much larger than…
user2280032
  • 101
  • 2
-1
votes
1 answer

Install screen on ubuntu 13.04 through .deb from web

I have a server on Rackspace w/ Ubuntu 13.04 (raring) that no longer has access to install packages through apt-get. Err http://mirror.rackspace.com/ubuntu/ raring/main screen amd64 4.0.3-14ubuntu9 404 Not Found Failed to fetch…
quickshiftin
  • 2,125
  • 5
  • 27
  • 41
-1
votes
1 answer

Execute a service as a specific user under ubuntu

I'm running a gameserver and want to start it on a screen on system start, but screen is user specific, so I have to run the command as 'user'. So I wrote this short service script which starts itself as 'user': #!/bin/sh #/etc/init.d/gameserver …
yspreen
  • 171
  • 2
  • 12
-1
votes
2 answers

How to setup `screen` command to run for every ssh session?

I'd like to record the activity for every ssh user connecting to my box. I think screen could help with it. I'm thinking on having screen running for every ssh user automatically upon ssh login and recording its activity to some file. Is that…
archer
  • 207
  • 2
  • 11
-1
votes
1 answer

Possible to run commands in a screen through cron jobs?

I currently have an application running in a screen. I would like to run some commands in the screen through a cron job but would like to know if this is possible. Using CentOS
user1804933
  • 111
  • 1
1 2 3
20
21