Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Before using this tag, read the "Which site is more appropriate?" section of the tag wiki.

screen (GNU Screen) is used to create virtual terminals, which run by their own when not under direct user control. This is especially useful while working with a remote system, when a disconnect can occur at any moment. In this case, the screen session will continue to execute and you may reattach a running screen later.

Screen also allows you to execute multiple commands in a single terminal without losing control over them.

One additional trick is that a single virtual screen can be used by several users simultaneously, allowing them to guide and observe actions of each other.

Which site is more appropriate?

If you intend to tag your question with this tag, consider if the question is more suitable for other Stack Exchange sites:

1022 questions
-1
votes
1 answer

Ubuntu, Screen, SSH, and Systemd

How do I set up a systemd service for a Java application that uses screen, and still be able to reattach to that screen? I have searched high and low for an answer, and tried several different things, but I think systemd is throwing a wrench into…
Tyrelius
  • 31
  • 10
-1
votes
1 answer

screen command in Unix

I have logged onto the HPC, and then used : screen -list It showed the following. > There are screens on: > 40032.pts-45.willow (16/06/17 13:59:42) (Detached) > 37414.pts-45.willow (15/06/17 15:01:30) (Detached) > …
user2669497
  • 157
  • 2
  • 11
-1
votes
1 answer

Do shell command in detached screen and detach again

Is it possible to enter into detached screen, do command, and detach again via one shell command?
Adrian
  • 532
  • 1
  • 7
  • 16
-1
votes
1 answer

Running an *attached* screen session asynchronously

I am trying to write a script which creates an interactive screen session in the background and retains control of the process so it can do other things (like split the screen the session when certain things occur, etc). So far I have tried…
curious
  • 133
  • 7
-1
votes
1 answer

Using screen in startup script

I'm trying to write a startup script to launch rtorrent. I've planed on using screen in the script. I tried this command in the startup script : su -l nico -c "screen -dmS rtd rtorrent" But it seems like it doesn't work (i can't get the screen…
Nicox11
  • 96
  • 1
  • 1
  • 7
-1
votes
1 answer

How to quit a "screen" process with an apple script?

To end a screen process you should type this: ctrl-a ctrl-\ y But how to send a ctrl command to terminal using an apple script?
Tym3k
  • 45
  • 2
  • 7
-1
votes
2 answers

How do I pass a command to a screen session?

I'm writing a Linux shell script in which I need to start a new screen session, run a node.js server in the screen, then detach from the screen so that my server runs in the background. Right now, these are the commands I run manually to do…
Sara
  • 11
  • 1
  • 2
-1
votes
2 answers

How can you read the most recent line from the linux program screen?

I use screen to run a minecraft server .jar, and I would like to write a bash script to see if the most recent line has changed every five minutes or so. If it has, then the script would start from the beginning and make the check again in another…
-1
votes
2 answers

BASH - loop error

I have a script in bash :< SERVER="screen_name" INTERVAL=60 ISEXISTS=false screen -ls | grep $'^\t' | while read name _rest ; do if[["$SERVER" = "$name"]]; then echo "YEP" && ISEXISTS=true && break fi done if $ISEXISTS then screen…
user1366028
  • 41
  • 2
  • 9
-1
votes
1 answer

Nested Quotes in PHP

I'm having another problem with the quotes in PHP, I have two sets of nested quotes inside a normal set and this is what I thought should work if (!($stream = ssh2_exec($con, 'screen -p 0 -S new3 -X eval \"stuff \"stop\"\015\"'))) { This is how it…
Jeremy Sayers
  • 637
  • 4
  • 10
  • 23
-1
votes
2 answers

Escaping quotes in a PHP script using ssh2_exec

I need some help with escaping the quotes in this script, I have code above and below, but it does not pertain to this because if I just issue a screen -d -m -S minecraft, it creates one fine. Any help would be amazing because i've been trying for…
Jeremy Sayers
  • 637
  • 4
  • 10
  • 23
-2
votes
1 answer

Linux screen push command error

#!/bin/sh SERVER=$1 RCON=$2 echo "$SERVER" echo "$RCON" sudo -u flash screen -r $SERVER -X stuff "$RCON"`echo -ne '\015'` Guys do you see something wrong with this code? The main concept in the script is to push a command to a opened screen…
-2
votes
1 answer

Running Vim in GNU Screen: How to avoid Shift+left/right to delete characters

I found that Shift+left and Shift+right delete characters, when running Vim inside a GNU Screen session. The same is true for Ctrl+Shift+left and Ctrl+Shift+right. Usually, these combination are related to highlighting text and not to deleting…
marou
  • 95
  • 1
  • 13
-2
votes
2 answers

Switch to running screen session after logout?

I tried screen -r and this is what I get: $ screen -r There is a screen on: 1877.pts-0.domain (10/21/2014 05:17:52 PM) (Attached) There is no screen to be resumed. How can I resume the listed screen?
JVE999
  • 3,327
  • 10
  • 54
  • 89
-2
votes
1 answer

Server Startup Script Problems

I am trying to set up a Minecraft server. However, the basic startup scripts provided do not fit my needs. I want a script that will: Start a new screen running the jarfile and (pretty much) only the jarfile (so i can ^C it if needed without…
Coder-256
  • 5,212
  • 2
  • 23
  • 51
1 2 3
68
69