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
0
votes
0 answers

how to redirect error code of screen

I am running a command through screen like this: screen -d -m sh -c 'command' The problem is that I would like to check if the command succeeded. It seems that I can't do this with echo $?. http://savannah.gnu.org/bugs/?25611#postcomment One way is…
0
votes
1 answer

Automatic launch a script at boot using rc.local with multiple screens that starts a sh file

I am close to giving up on screen and look for alternatives. I have two Minecraft servers running on my server. A DireWolf20 and a EpicCraft. Sometimes I need to reboot the server, and every time I need to manually login via SSH and start screen 2…
Exill
  • 3
  • 1
  • 3
0
votes
2 answers

Start Unix screen command in middle of process

If I've started a process, e.g. java hello.java, is it possible to switch to screen, so I can disconnect from the server, but have the process continue to run?
Adam_G
  • 7,337
  • 20
  • 86
  • 148
0
votes
1 answer

Unable to send Enter-Stroke to screen session from script

I would like to control a screen session (A) from another screen session (B). Therefore I wrote a little script that I will run in session B: #!/bin/sh clear while : do screen -S SessionA -X stuff '^C' screen -S SessionA -X stuff 'java -jar…
user3116232
  • 433
  • 5
  • 17
0
votes
1 answer

Sending \r in screen through ssh?

I have been trying different ways to get this to work. ssh netpc screen -S minecraft -X stuff "say Performing save/backup operations there may be lag...not really this is a test$(printf '\r')" It fails to recognize the $(printf ‘\r’) due to some…
0
votes
2 answers

Running Python script in a linux "screen" which results in a "Cannot assign requested address"

I have a shell script which starts a simulation environment (ROS together with Underwater Simulation) on Ubuntu 12.04. In order to use the simulation environment in general ones component needs to communicate with the environment via TCP/IP. If I…
Westranger
  • 1,308
  • 19
  • 29
0
votes
2 answers

VT100 terminal emulation for a Java-based 8-bit computer emulator

I am successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is 'screen -istrip /dev/ttyUSB0'. Screen does the VT100 emulation, strips off MSB from output etc.…
0
votes
1 answer

Stop screen redirecting output without kill the screen

I run a script in a screen terminal (screen -L), redirecting its output into a screenlog.0 file. Now the file is getting dangerously big and I was wondering if you knew a way in order to stop the output to be saved still preserving the script…
user_1177868
  • 414
  • 4
  • 18
0
votes
1 answer

Starting a screen session from within another screen session

I made a script, that runs in a screen session. This script shall run several new scripts in a new screen, if they are down. (They crash frequently, so this is necessery). But for some reason, the script does not start a new screen. It is no error…
Cydhra
  • 581
  • 1
  • 7
  • 17
0
votes
0 answers

How to send message both to netcat and other script?

I'm trying to make some client-server interface. Think of it as one-on-one chat. What I want to achieve are two horizontal views. Bottom for my (server) input, top for client output and my input, both formatted (e.g. added timestamp). I'm making…
Mars
  • 867
  • 2
  • 13
  • 22
0
votes
1 answer

Custom script in .screenrc

I made a script that spawns a remote shell or runs a local shell whether it's on the current machine or not: #!/bin/bash # By: benoror # # spawns a remote shell or runs a local shell whether it's on the current machine or not #…
Ben Orozco
  • 4,361
  • 4
  • 33
  • 49
0
votes
1 answer

Using 'screen' to detach from GVIM

I want to be able to detach a gui-window for a program like gvim. I ssh into the remote machine, and launch 'screen': screen I'll then just launch "gvim" in this screen session. However, I cannot do a ctrl+a+d on the gvim, and when I kill the…
Toast
  • 356
  • 1
  • 2
  • 8
0
votes
0 answers

git ps1 is very slow in GNU-Screen

I have my custom PS1 on my virtual machine ( Vagrant / ubuntu-13.10 ), which works perfectly when I ssh to the machine. But when I run GNU-Screen to have multiple screens I loose that, which is normal (as ~/.bash_profile is not being called at…
Majid
  • 2,845
  • 3
  • 15
  • 14
0
votes
2 answers

bash when inside screen, output is truncated if does not fit in a line

Outside screen - [j@firedesire rb]$ diff -bu root_es-US.pres root_es-MX.pres | sed -n "s/^-\([^=]*\)=.*/'\1'/p" | tr "\\n"…
Jithin
  • 1,108
  • 2
  • 12
  • 26
0
votes
2 answers

How to get utf8 working properly in the Ubuntu terminal with screen?

On my mac I can run the following in a terminal (either iTerm or the Mac Terminal app, the results are the same) to get the beer mug icon printed: echo -e "\xF0\x9F\x8D\xBA" 🍺 When I ssh to my Ubuntu machine, I can also use the same command to get…
Jonathan
  • 11
  • 5