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
2 answers

How can I tell whether screen is running?

I am trying to run a Python program to see if the screen program is running. If it is, then the program should not run the rest of the code. This is what I have and it's not working: #!/usr/bin/python import os var1 = os.system ('screen -r >…
spxxn
  • 11
  • 2
0
votes
1 answer

Tmux bind C-S-6 as command key

I'm migrating from Screen to Tmux. In my .screenrc I have this entry to set control-shift-6 (ie ^) as my escape key: escape ^^^^ How do I do the same in Tmux? I tried this but it isn't working: unbind C-b set -g prefix C-S-6 bind a send-prefix
Sonia Hamilton
  • 4,229
  • 5
  • 35
  • 50
0
votes
1 answer

How to create additional terminal in linux screen from bash

In screen, you can press ctrl+a c to create new terminal inside the same screen session. Now I have to automate this activity and do the same from my bash script: dbus-launch screen finch ctrl+a c <--------- HOW TO CHANGE THAT LINE? python…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
0
votes
1 answer

Resuming screen after ssh-ing into server

I get the following error when I try to resume the only running screen session on a ubuntu machine (after sshing to it from my Mac OS X 10.9) ubuntu@ip-10-252-164-249:~$ screen -r Cannot find terminfo entry for 'xterm-new' How can we fix this?
Pranjal Mittal
  • 10,772
  • 18
  • 74
  • 99
0
votes
1 answer

Passing the DISPLAY argument into a GNU screen command to run Selenium

I am running a multiserver Selenium testing environment using headless VPSs. I have nearly everything automated except for a specific need to declare the DISPLAY=:1 argument when starting Selenium within a screen session (due to running VNC…
Tom Merrihew
  • 433
  • 4
  • 10
0
votes
1 answer

Shared linux terminal - accounting for resolution differences

I'm implementing a web-based, shared Linux terminal (using term.js), and one issue I'm facing is the potential screen size differences of various connected users. For e.g. if I set export COLUMNS=160, then people with small screens have badly…
jeffreyveon
  • 13,400
  • 18
  • 79
  • 129
0
votes
1 answer

How do I get screen to both source bash and start in the working directory?

I'm on OSX Mavericks and having trouble with gnuscreen both sourcing bash and starting in the working directory at the same time. Solutions that I've seen for the former clash with the latter.
user592419
  • 5,103
  • 9
  • 42
  • 67
0
votes
2 answers

Xshell's color scheme don't display correctly in GNU-Screen

In my Xshell, every thing is like this: But when I get into gnu-screen, my color fade to grey... I googled, and find By default, screen uses an 8-color terminal emulator. in this archlinux wiki page. I have tried all of the solution given by that…
Sayakiss
  • 6,878
  • 8
  • 61
  • 107
0
votes
1 answer

Remote control using ssh

Given: 2 clients (A and B) on seperate private IP-nets without ssh-server but access to internet 1 server on a public IP with ssh-server Wanted: control client A from client B Restrictions: only use pre-installed software from LinuxMint…
ineiti
  • 324
  • 3
  • 11
0
votes
1 answer

Linux screen command scrollback one screen

In the screen command manual, it states that after entering copy/scrollback mode, ctrl+b is supposed to scrollback one screen(like Page Up in vim). But, in my machine, first ctrl+b will scroll one line. It is only the second and more ctrl+b will be…
user926958
  • 9,355
  • 7
  • 28
  • 33
0
votes
1 answer

how to display vertical tab in screen mode?

I have a file contain these text abc\v\rdef if i cat the file in shell mode, it presents like the following. it's correct. abc def if i cat the file in screen mode, it presents like the following. it's wrong. def all commands i input was…
Gucci Koo
  • 541
  • 4
  • 10
0
votes
1 answer

Python - How to launch a subprocess before exiting the program (which is running on a detached screen)?

For some reason, I would like to launch a script just before exiting my current one. I found one simple way to do it: script1.py: #** #some code #** p=subprocess.Popen(["python", "script2.py"]) With this, if I run script1, it will launch script2 at…
Thematrixme
  • 318
  • 1
  • 4
  • 14
0
votes
1 answer

passing the command with an enter in existing screen session using bash script

I am writing a bash script. Below is my command screen -x stack -p n-api -X stuff "ls" This command just pastes this command never executes. Hence i used control + V + enter command to form a symbol ^M which is essentially an enter. but…
Shweta B. Patil
  • 1,131
  • 2
  • 11
  • 19
0
votes
2 answers

View output from a PHP script while it is running and log it to a file, and the script takes human input from STDIN

I have a php script I am running on the command line. It takes ~10 hours or so to complete, so I have it running on a screen so I can detach it, and check its progress throughout its run. I want to also log its output to a file. One solution is to…
chiliNUT
  • 18,989
  • 14
  • 66
  • 106
0
votes
1 answer

Implementing a "screen" command for windows machine using python

So I am trying to do following: I have Cygwin enabled with screen and ssh daemon in Windows 7. I create a new screen using the command screen -dmS "my_screen" on my Windows machine. I ssh to the Windows machine from my Linux machine. I attach to it…