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
1
vote
2 answers

What is the best way to apply your old settings / environment to new server

Let's say you have your favorite settings with zsh, vim, screen, etc., behaving the way you want on some boxes. What is the best way to apply these settings / environments to a new server? Assuming all the necessary software is installed on the same…
Lamnk
  • 1,095
  • 3
  • 11
  • 17
1
vote
2 answers

Kill named running screen with -X only works after reattached

I am using ubuntu 8.04.4 and would like to start daemons like this: screen -dmS SESSIONNAME script.sh Then i want to kill these screens with -X like so screen -S SESSIONAME -X kill But, this does not work. Only if i attach and detach that session…
None
1
vote
1 answer

How to monitor stdout logs in an EC2 screen session?

I'm running a CLI on an EC2 server (Amazon Linux image), which I let run indefinitely with the screen terminal multiplexer. My program queries an API continuously and logs the current state to stdout: The CLI logs encounters error occasionally, and…
1
vote
0 answers

Keeping processes alive when closing SSH connection on MobaXTerm

I'm facing somme issue when trying to keep process alive when shutting down session in MobaXTerm. I have a java process which should run on a linux server. I am using two commands, nohup and screen. For nohup, i am using the following command > …
Sebr
  • 11
  • 1
1
vote
2 answers

screen inside systemd daemon on CentOS 8

So I want to run screen inside a systemd service so that I can give the process (inside the daemon) commands while it is running. See at the end of the question for examples of what I want be be able to do. What I currently have: A java application…
Rinkana
  • 11
  • 4
1
vote
1 answer

script to attach screen and run command but do NOT detach

I want to do something like this: #!/bin/bash screen -r session -X run 'long-cleanup-and-quit' doing-something-else ... Which is fine, but I want 'doing-something-else' to wait for screen. screen -X doesn't block, which is understandable. So is…
hyy
  • 11
  • 2
1
vote
1 answer

Save or capture Screen output to file after it has written to stdout?

I've run a script in a screen session but I forgot to redirect stdout to a file. There's about 10MB worth of text. If there's even some way to highlight the text and copy paste I would, but Ctrl-A + Esc won't scroll my terminal view when I click and…
RTF
  • 218
  • 2
  • 11
0
votes
1 answer

LINUX: is it posible to show on tty1 the same thing I see when logged in via ssh?

I am logged in via ssh int a foreign Linux box, and the owner want to assist me from tty1. I tried to convince him to log also in and share a screen with me. He insists he want to assist me from tty1. Is there a way to make a screen with a console…
Max Muster
  • 337
  • 2
  • 6
  • 27
0
votes
1 answer

Amazon EC2 only running one http script

I'm running a python script to scrapping a page in my EC2 server using screen linux though a SSH connection. My EC2 account is the free tier offered by them. Every time I try to run another script (same script but a different page being scrapped)…
0
votes
0 answers

Attach root-user screen session as non-root user

I have a screen session that is started by root and I would like the non-root account (guest) be able to attach the root user's screen session in multi-user mode with screen -x. Is this possible? When I have a detached screen session running as the…
0
votes
0 answers

GNU screen: Endless flickering on attach

I run a process in a background (i.e. nobody attached) GNU screen session on a fresh Kubuntu machine (in a qemu vm). It starts very early during boot, runs for many minutes, and creates all kinds of output. Potentially that can be everything. At…
ginger
  • 3
  • 4
0
votes
1 answer

Monit background script running within a detached screen

How can Monit be used to monitor a simple script that creates no PID file and is running in the background within a detached screen session?
titel
  • 111
  • 1
  • 8
0
votes
2 answers

re-parenting to screen two processes joined by pipe

Let's say in a PuTTY connection I start mysqldump --host host1 --databases db1 db2 db3 | mysql which creates two processes: mysqldump with PID 5800 and mysql with PID 5801. Is it possible to let the running processes continue execution when I want…
user178826
0
votes
0 answers

resume tar command when nohup/screen is not possible

I have a dataset which is quite big - a few petabytes. Untarring it into a new filesystem takes a couple days. The problem is that the server does not allow me to have a process running over 24h - it gets killed, whether I want it or not. This…
0
votes
1 answer

Putty + Screen Auto Terminating Screens

I'm running screen inside a putty terminal. The problem I'm having is after a while of inactivity inside a screen, the screen automatically kills itself. So when I do things like run something overnight I'll come back in the morning to see that all…
Perishable Dave