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
1 answer

Linux scripting after opening a screen

In my shell script, I'm trying to open up a screen and have the script continue in the screen. Is this possible? Every time I open a screen, the script stops and waits for me to close out of it to continue. screen -S newScreen; echo "text in…
Ryan
  • 5
  • 1
0
votes
1 answer

Return focus to vim when using screens plugin after ScreenShellFocus?

The screens plugin turns vim into a kind of dreampie, only its a whole lot better because you have more control over what gets send even when you have multiple buffers and specific text within those buffers. To follow my environment setup, merely…
Adam Miller
  • 1,756
  • 1
  • 25
  • 44
0
votes
0 answers

Why program interface is change when i run it on screen?

Sorry for my english first of all. Why program interface is change when i run it on screen? without screen +--------[ Қош келдіңіздер! ]--------+ | | …
0
votes
0 answers

Debian: Run a new screen using PHP

I'm currently trying to build a screen manager for my V-Server (running Debian 6.0.6) using PHP. My script does already show the runnung screens, but I just fail at running a new screen: webstat.php: exec('sudo -u root screen…
Leonas
  • 1
0
votes
2 answers

GNU Screen split tab

I'm looking for a way to split a tab (not all tabs) with GNU Screen. I currently have one tab per account / application. For an application I would like to see the log and have a bash at the same time. I tried to create a new instance of screen in…
Zef
  • 1
  • 1
0
votes
1 answer

How to run screen executing a command over ssh with tty

I tried many things today to have ssh start a screen session which executes a command. The goal is to run a command on a remote machine and to be able to see the output and to detach and reattach latter. I want to do it from within a script without…
highsciguy
  • 2,569
  • 3
  • 34
  • 59
0
votes
2 answers

Trying to persist process through SSH is failing

I have a long-running python program that I'm trying to run on a remote server. I've looked at "How to keep processes running after ending ssh session?", " How to start process via SSH, so it keeps running?", "Run a persistent process via ssh", and…
jiangty
  • 311
  • 2
  • 9
0
votes
1 answer

Start screen with commands for different windows

How can I start gnu screen with several different commands in several different windows? i.e., (pseudocode) screen -window1="ping google.com" -window2="vim ~/secret_document.txt"
ʞɔıu
  • 47,148
  • 35
  • 106
  • 149
0
votes
1 answer

Looping an array index into a screen session

#!/bin/bash IFS=$'\n' fortune_lines=($(fortune | fold -w 30)) Screen_Session=$"{mainscreen}" Screen_OneLiner=$(screen -p 0 -S ${Screen_Session} -X stuff "`printf "say ${fortune_lines[@]}\r"`") for var in "${Screen_OneLiner[@]}" do echo -e…
RandomNumberFun
  • 638
  • 2
  • 8
  • 25
0
votes
1 answer

Screen keeps terminating

I am trying to run a script in a screen that uses inotifywait to check for new files being created and then runs a script when an event that matches some parameters occurs. For some reason screen keeps terminating even though the script being run is…
jhmiller
  • 99
  • 1
  • 8
0
votes
1 answer

Combining two windows in Screen

How can you combine two windows in Screen? I have two windows such that I can move between them by ^A p or ^A n in Screen. I would like to combine two windows which have the numbers 1 and 3.
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
0
votes
1 answer

set vim colorscheme based on putty session

How would I cause vim to startup with a different color scheme depending on whether or not I was connected via a PuTTY ssh session? I have a preferred color scheme that doesn't display correctly through putty, but I need to use putty sometimes when…
markw
  • 620
  • 3
  • 14
0
votes
1 answer

How to bypass screen/byobu conflicts with zssh file transfers (rz/sz)

I've been trying out zssh's sz and rz because it seems like a quick/easy way to send files back and forth (local <-> remote) over ssh. The problem is that I use byobu (basically screen) on my remote server and this somehow conflicts with the sending…
tester
  • 22,441
  • 25
  • 88
  • 128
0
votes
1 answer

Bash: Screen parameters being interpreted incorrectly

I'm trying to start daemon screens with screen -dmS nameofscreen command. This works by itself, but when I use a command with && or | it seems to interpret it wrong. Example: screen -dmS screen1 echo test && ls -al It seems to be interpreted as…
hexacyanide
  • 88,222
  • 31
  • 159
  • 162
0
votes
1 answer

How can I log the output of a session generated by the "screen" command?

I am running several Screen sessions in the same directory at the same time. When the program in a certain session is completed, this session is terminated automatically. However, I need to check the output of the session. So I tried to use "screen…
Runner
  • 365
  • 1
  • 5
  • 21