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

Starting java program and screen with cron at boot

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 "java -jar…
Arya
  • 131
  • 11
0
votes
1 answer

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/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh chmod a+x…
jerry
  • 111
  • 1
  • 3
0
votes
3 answers

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 ?
yarek
  • 827
  • 5
  • 13
  • 22
0
votes
1 answer

How to bind action to ctrl-f1 in screen?

I know I can do: bindkey "...." action where .... is what i get by typing ctrl-v and then ctrl-f1. but it looks bad, contains bad characters (^[), and is generally not cool. when binding to f1, i can do: bindkey -k k1 action but I can't seem to…
user13185
0
votes
1 answer

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 killing all the windows and then adding two new ones…
ComputerLocus
  • 193
  • 4
  • 12
0
votes
1 answer

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, but when i try to get, I got anoter PIDs. I tried…
0
votes
1 answer

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 blocks the interface until the command completes. I…
Ken Sills
  • 13
  • 4
0
votes
0 answers

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 unavailable after ~20 days of successful online. Logs of…
WildDev
  • 167
  • 8
0
votes
1 answer

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 stops immediately if I press "ctrl +c". Infact If…
0
votes
1 answer

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/vagrant/test_folder/…
0
votes
1 answer

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 update last night. I can see the screens listed…
BotskoNet
  • 151
  • 1
  • 6
0
votes
1 answer

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 vCPUs because it leads to more performance…
D.Zou
  • 191
  • 1
  • 8
0
votes
1 answer

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 detach the screen Is there a way to automatize that…
yarek
  • 827
  • 5
  • 13
  • 22
0
votes
2 answers

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 perfectly, and this includes writing to a file. I want…
unicorn_poet
  • 101
  • 2
0
votes
1 answer

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 time Im getting [PDOException] SQLSTATE[40001]:…