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

create an append log for a detached screen session

I use a detached screen session to launch a process, I like it 'cause I can reattach the session and check how it is going. The process shows output on a session, checked with screen -r or screen -x, I would like to create a log too, for this…
xer
  • 23
  • 1
  • 6
1
vote
1 answer

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. If I get into command screen time python3…
Volatil3
  • 275
  • 1
  • 3
  • 11
1
vote
1 answer

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 wish I have. I'd like to have the ping speed from…
ddofborg
  • 223
  • 1
  • 3
  • 7
1
vote
1 answer

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 # Provides: node2 # Required-Start: $local_fs…
KittMedia
  • 238
  • 3
  • 11
1
vote
1 answer

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 a 'stop' command to the server console so it…
bhygate
  • 111
  • 2
1
vote
0 answers

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 works fine for a few hours, even after I exit from the…
dev-noops
  • 11
  • 2
1
vote
1 answer

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 need to send about 6 commands per session or so. …
k-h
  • 139
  • 4
1
vote
0 answers

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 a background process…
bubele
  • 11
  • 3
1
vote
1 answer

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/html/filter/unfiltered.txt | awk '{print $1}' >…
LinHost
  • 39
  • 5
1
vote
1 answer

Unable to redirect STDOUT in a remote screen session via SSH

I would like to execute a long-running command via SSH/screen and have the output redirected to a file. I'm able to run the command fine (similar to this question), but the output never shows up. Here is my current command: ssh user@host screen…
havoc1
  • 153
  • 2
  • 7
1
vote
1 answer

No hangup signal by default

I have a server running ubuntu server. It is behind a proxy...I don't know if that makes a difference. But I have found that a couple of processes I've tried, get terminated when I log out of the SSH session. For instance, I have ipython notebook…
jwillis0720
  • 155
  • 10
1
vote
1 answer

Whic Command I Runnning Inside a 'screen'?

I have logged in in a server.Then issued the "screen -list" command which gives the following output - There is a screen on: 11048.pts-0.devops (Detached) 27563.pst-0.devops (Detached) 1 Socket in /var/run/screen/S-root. Now I have to…
Razib
  • 175
  • 6
1
vote
2 answers

how to create a screen session within an existing screen session

Case scenario: When I open my terminal, screen starts automatically. This is useful because I often need multiple screens locally within the same terminal. However, if I connect via SSH to a server and want to start a screen session on that server,…
hbt
  • 143
  • 6
1
vote
1 answer

How to use screen with mysql import

I need to import a very large MySQL table on remote server. Usually I'm using mysql -u mysql_user -pMypass db_name < sql_data.sql But it takes about 5 hours to complete the task. I tried using nohup but the logout process is killing the import. I…
valk
  • 497
  • 2
  • 9
  • 20
1
vote
1 answer

Gnu Screen: How to specify a .screenrc file on startup?

Is there a way to launch Screen with a specific .screenrc file, instead of the one in my home directory?
lairtech
  • 417
  • 7
  • 13