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

Questions tagged [gnu-screen]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

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 ...
0
votes
1answer
45 views

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?
0
votes
2answers
47 views

re-parenting to screen two processes joined by pipe [duplicate]

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 ...
0
votes
0answers
25 views

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 ...
0
votes
0answers
78 views

Some .screenrc commands not working in my .screenrc

When I ssh into my server a screen session is automatically started. This is my screen rc: termcapinfo xterm* ti@:te@ bind ' ' windowlist -b caption always "%{= kc}%H (system load: %l)%-21=%{= .m}%D %...
0
votes
0answers
17 views

Using screen/tmux to ssh into remote computers and issue a sudo elevated script for patching

Before I get a lot of suggestions, I know of patching tools like Satellite and/or config management tools and others. But I'm hoping this community will entertain me here and assist with pointing me ...
1
vote
0answers
81 views

Create a screen. Run said screen as a user. Detach

I'm essentially trying to combo Create screen and run command without attaching and another answer that allowed me to run a script as another user. I want to SSH from Server 1 -> Server 2 and run a ...
0
votes
1answer
272 views

Starting java program and screen with cron at boot [duplicate]

I am trying to run a java program inside a screen session at boot, I am using the following cron, but after reboot screen -ls shows no active screen sessions. @reboot /usr/bin/screen -dmS myservice "...
0
votes
1answer
20 views

Can GNU screen leave you at shell prompt after command instead of exiting the TTY?

I commonly need to run a specific screen session with 9-10 windows, most of which need to run either an interactive command, or simply a setup-type of command. I do this via screen -c <config-that-...
0
votes
2answers
97 views

If run as a cronjob my shell script doesn't launch a screen

Please have a look at the following simple shell script startCleanup.sh: #!/bin/sh screen -d -m -S cleaner /usr/bin/python3 /opt/cleanup.py My crontab looks like this: * * * * * /opt/startCleanup....
1
vote
0answers
63 views

How to use screen with mysql cli?

Here is what is happening. I'm using debian with KDE. I open Konsole. I use ssh to log into my amazon server. All of the following commands are done in the Konsole whiled logged into the amazon server....
1
vote
1answer
107 views

On Google Cloud, GNU screen just exits with no message - Ubuntu and Debian

On Google Cloud Compute Engine GNU screen is exiting with no message. It works if I "sudo screen" but that is not what I need. The binary is suid root and has correct permissions, and I have also ...
1
vote
0answers
40 views

How to tell screen use use different bash_profile?

How can I tell to screen to use different bash_profile? Problem is we use a technical user to log in, but I edited a custom PS1. Normally I login with putty like: ssh user@host -t "bash --rcfile ~/....
0
votes
1answer
440 views

Unable to run X server on a remote VPS server using xvfb

My app uses the library https://github.com/wkhtmltopdf/wkhtmltopdf which requires X server. Here's a workaround: echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/...
1
vote
0answers
112 views

Create screen session in background only if it doesn't already exist

How can i create a screen in detached mode only if it doesn't exist? This creates a screen named name in detached mode but will create duplicates screen -dmS name command This creates a screen only ...
1
vote
0answers
148 views

screen Cannot access pts/0 No such file or directory

I want my script continue to run after ssh session terminate. I have no root access to server. What I tried: autos@autos.tech [~/bit]# ls -la /var/run/screen/ drwxrwxrwx 4 root screen ...
1
vote
0answers
32 views

how to avoid screen termination once the job is done [duplicate]

using a shell script i am ceating multiple screen in which i m running rsync cmnd with below syntax, n i m able to do so. screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" but as soon as rsync ...
3
votes
3answers
927 views

How to launch crontab commands inside of certain screen sessions?

I have a crontab that runs like this: 0 0 * * * /execute/shell/script.sh 0 0 * * * /execute/shell/script1.sh 0 0 * * * /execute/shell/script2.sh And, I want to launch each script in a different ...
35
votes
1answer
2k views

Recover a running script from a terminal session

So I'm using GNU Screen to manage multiple running scripts/programs. The multiplexing & detachability is quite helpful. I removed a script from disk and now I'm having some trouble finding the ...
1
vote
1answer
2k views

/var/run/screen permissions changing to 775 without restart

Good <Insert Part of Day>, I am currently having an issue with several of my boxes running CentOS 7.3.1611 wherein the permissions for /var/run/screen are being changed to 775, resulting in the ...
1
vote
1answer
858 views

How to detach Screen session with a command with Python Fabric

I know about Ctrl A and D combination. What actually I am looking that I am running a long process with screen. I want to programatically come out of it as I am using Fabric to automate my activities. ...
0
votes
3answers
347 views

why must I use sometimes screen -rx and not screen -r?

Sometimes to get access to screen console I need to user screen -rx and not just screen -r. Any idea why and why this happens ?
6
votes
1answer
916 views

Obtain hardcopy from a screen session

I have a job launched in a screen session which is expected to run for several hours. From time to time I'm requested to check if job is still running and guess at wich % of work is. Guess if it is ...
0
votes
1answer
281 views

Killing screen session and starting a new one, cron

I have a screen session I run with a couple windows going on it that are running a couple applications that run a console in the terminal window (thus why I run them in screen). I would like to be ...
1
vote
2answers
1k views

keeping a detached ssh process running *after closing the ssh client*

I ssh in to my ubuntu machine usimg mobaxterm. This works very well. Sometimes I want to keep a process running but exit my ssh session (and exit mobaxterm). I have tried the following but ...
2
votes
1answer
411 views

open screen in background and start a process

I want to do the following: After reboot I want to start a screen which then should execute a script. Therefore I searched for crontab and screen and I also did find some answers. However, nothing ...
0
votes
1answer
51 views

How can I get su screen PID on Debian8?

I want to run this command by another user (so with su): screen -ALmdS server_mta ./mta-server -n It's okay: su - server_2 -c 'screen -ALmdS server_mta ./mta-server -n But I need the PID of screen, ...
1
vote
1answer
139 views

Bash script: get real remote (mosh+ssh) IP

I'm using Mosh + GNU Screen for most of my remote work. I'm also moving to location during the week (with different IP addresses) and this setup keeps everything running like a charm. There is one ...
1
vote
1answer
334 views

Init script doesn’t work properly by using “service” command

I have the following startup script, which should either start or stop a screen in detached mode: #!/bin/sh # node2 # Maintainer: @KittBlog # Authors: mk@kittmedia.com ### BEGIN INIT INFO # ...
0
votes
1answer
436 views

Need to send ^C to CLI using GNU screen over serial interface (/dev/rfcomm0)

I am connected to an embedded Linux device using GNU screen. The connection is via /dev/rfcomm0 which is a Bluetooth serial interface. I frequently forget to put an & after a CLI command, which ...
1
vote
1answer
145 views

Run command in screen when LSB initscript stopped

I'm trying to get a Bukkit server to run inside a screen as a service, started from an LSB script but I cant get it to stop correctly. What I essentially want it to do is reattach the screen and send ...
3
votes
1answer
1k views

Owner of screen session

When I logged in a server and issue a 'screen -list' commands it gives the following result - 31917.pts-5.office (Detached) 31844.pts-0.office (Detached) But it is sometimes important to ...
0
votes
0answers
564 views

CentOS 7 screen session has been terminated unexpectedly

I've default CentOS7 server without any additional software except of WildFly10 and I'm the only user there. I'd run WildFly using screen command and logged out from the server until it became ...
0
votes
1answer
134 views

Why putty takes time to deliver “ctrl +c” signals to process which are outputting heavily on stdout?

Whenever process is printing heavily on the stdout, if I try to kill process via sending signal "ctrl + c", the process does not stop immediately. But if I am redirecting output in the file, process ...
-2
votes
1answer
324 views

Running a MTR in Screen through SSH

I recently was introduced to a command that will ssh in our proxy server, then ssh into a network: ssh myname@proxy -t "host $IP" I tried modifying the command as follows to run MTR against our SIP ...
0
votes
1answer
441 views

Start multiple rsync sessions

I want to start multiple rsync sesssions via screen in detached mode? Is it possible? I need to run rsync script for each file in folder. screen -t -d sshpass -p 123456 rsync5 rsync -avzP /home/...
0
votes
1answer
67 views

Resuming detached “screen” leads to blank screen

Suddenly I'm no longer able to resume screens I have running on a remote machine. I've never had this happen in a few years of running this machine. I don't know that it's connected but I did run yum ...
1
vote
0answers
726 views

Ubuntu Allow users access to roots “screen” command, also restrict which screens they can attach to

I'm trying to allow a user to connect to the screens that the root user has. When another user does "screen -ls", it shows "No Sockets found in /var/run/screen/S-USERNAMEHERE". In addition to this, ...
0
votes
1answer
59 views

how can i tell if screen 4.0.3 is multi-threaded?

I got screen 4.0.3 running on my redhat 5.9 VM. I am trying to figure out ways to optimize the VM performance. I read that for single threaded applications, it is better to not give the VM too many ...
1
vote
0answers
70 views

Every process I start, apart from nginx, dies after a few hours on AWS EC2 Ubuntu instance

I'm new to ubuntu (coming from mac) and I'm trying to run a couple of java servers and a node server on an ubuntu Amazon EC2 instance. I run each server in its own screen session, and everything ...
1
vote
1answer
2k views

expect script running screen stops working when run by cron

I hope this question is OK for this forum. I have a device, a modem. I talk to this modem with the linux program "screen" as a terminal program. I invoke it like this "/usr/bin/screen /dev/tty6". I ...
0
votes
1answer
344 views

how to use screen with crontab?

I have a screen task running with node (nodemon) I would like to restart nodemon at midinght every day What I do manually is under SSH screen -r myscreen I TYPE "rs" manually I type CTRL+A+D to ...
0
votes
2answers
717 views

GNU screen detached cannot write to file after ssh logout

I am ssh-ing into a Linux cluster that uses an AFS home directory. I am trying to use GNU screen to run a long-running program in a detached screen. If I remain logged in the program executes ...
0
votes
1answer
409 views

Check if command in screen is running

How can I check if command running in screen is still running or it output with exception ?? So I can report it to user. Im trying to execute command which is inserting data to mysql but from time to ...
2
votes
1answer
145 views

How to specify GNU screen ACL as part of its command line?

What I'm trying to do is spawn a detached screen session, but as part of the command line that creates it - also modify the ACL list. So right now I have screen -dmS MySession "SomeProgram" "...
5
votes
1answer
1k views

Running detached screen session but without termination in the same bash

Here are already many questions like this, but every one recommends (a variant of) the following solution: screen -dmS somename bash -c "/path/to/script; bash -l" e.g. when the script ends, run an ...
1
vote
0answers
1k views

How to kill all process on ssh logout? (Kill running Background proccess started with screen etc)

Hi i have a multiuser centos server running. There are for example 3 users (non root) - each of them have their own homedir. SSH Login is allowed (bash). How could it be reached, if a user started ...
1
vote
1answer
796 views

Running CAT in SCREEN no output to file

I am trying to code this command to run in screen along with 2 others that will be using cat to read a file then pipe it into awk for filtering. Here is the command; screen -d -m /bin/cat /var/www/...
0
votes
1answer
164 views

screen -r and screen -list only show last screen

My problem is pretty much as the title describes it. I am running ssh session and on my server I screen for multitasking. My issue here is that I have at least 4 screens open and detached, but screen -...
-1
votes
1answer
111 views

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 ...