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

Blanked terminal in screen when quitting emacs

I use emacs in terminal mode (i.e., launched with the -nw option) in screen. When I quit or suspend emacs, instead of getting back my terminal with the history of previous command and outputs of these commands, I see a blank terminal with only the…
chlorine
  • 33
  • 4
0
votes
1 answer

Create window into screen

Is there a way to list all window names and depending on the result, creating a new window with a specific name into this (running) session. How to create a new screen session with assigned window names is documented in the man pages, but i could…
inselberg
  • 549
  • 3
  • 13
  • 27
0
votes
1 answer

How to copy text from emacs in one screen session to emacs in another screen session in terminal

I use emacs within screen in SSH for most of my work, and would like to be able to copy text from one session to another. I currently use the mouse to select, but this is problematic for three reasons: Spacing often gets messed up, particularly…
Max Ghenis
  • 14,783
  • 16
  • 84
  • 132
0
votes
1 answer

python sending specific number of commands from a text file

I have a text file that contains 100 bash commands and i want to execute every 5 in a new screen , but I don't know if I can use "for" in this case . For example we have those commands :- mkdir 1 cd 1 rm -rf 1.txt rm -rf 2.txt cd .. mkdir2 ... I…
abualameer94
  • 91
  • 3
  • 13
0
votes
1 answer

Using screen to startup a minecraft server(linux debian)

I tried alot of things and got alot of errors, what i try to do is open a screen session on startup, start a minecraft server in it and then detach it so i can SSH to it with screen -r. The first command works fine, the problem is after the first…
knowndead
  • 80
  • 8
0
votes
1 answer

(Script)How to start gnu screen interactively and then run some command in it?

What I want to achieve is as the following: Start from bash in some terminal Run gnu screen: exec screen Start my desktop session in background: startx & So now I end up with a terminal with screen running and X running in backgroud(in some vt)…
kawing-chiu
  • 2,675
  • 1
  • 14
  • 10
0
votes
1 answer

How to run ruby script at system start in background

I need always running Ruby script at ubuntu 12.04. Now i connect to server at putty and type "ruby execute.rb", but with closing or disconnect console that will stop If i add "ruby execute.rb" to my ~/.bash_profile - when i connect to server at…
user2572790
  • 442
  • 3
  • 13
0
votes
1 answer

Selenium ChromeDriver - How to run as a daemon and deploy?

I set up the latest version of Selenium Server, ChromeDriver and Chrome on a headless Debian 7 VM, running it manually through Screen with Chrome running inside Xvfb. This worked very well and I would now like to transfer this to a production Ubuntu…
Gargravarr
  • 635
  • 2
  • 10
  • 18
0
votes
1 answer

6 Hour Countdown using bash

I currently have a script set to run every 6 hours (0000, 0600, 1200, 1800) that restarts a minecraft server running in a detached GNU screen. I'd like to create a script that runs on the hour, that will show the remaining time to the next…
Alex
  • 33
  • 6
0
votes
1 answer

How do I launch a PHP Process in a Screen session that has not been invoked yet?

I want to launch a PHP Process in a Screen session that has not been invoked yet. I do not want to attach to this screen. I will be launching lots of these, by hand at first, then probably with a shell script. I would like to write the output of…
T. Brian Jones
  • 13,002
  • 25
  • 78
  • 117
0
votes
1 answer

Ssh connection to matlab GUI (using screen)

Can I connect to matlab GUI remotely via ssh and "screen" simultaneously? Using commands ssh, "screen" and "maltlab -nodesktop" seem to work without graphic interface ,but I need GUI to use specific toolbox. And I need to disconnect and reconnect it…
0
votes
1 answer

How can I display all the screen windows permanently at the bottom of VIM files?

I use 'screen' and vim together but instead of switching to screen mode to see what windows are open with CTRL + A, " How can I make the status in vim at the bottom show all the screens windows that are open?
CodeCrack
  • 5,253
  • 11
  • 44
  • 72
0
votes
1 answer

GNU Screen can't find applications after log out

I recently installed Ubuntu 12.04 sever on a new box. I ssh in, run a command (a do loop iterating over a perl script that forks off several processes each running an application [blastn] on the provided data), and detach using Ctrl-a d. When I…
Egon
  • 15
  • 3
0
votes
1 answer

Determining Priority of Programs' Handling Keyboard Input

When I run vim in a terminal screen buffer under the gnu screen terminal multiplexer, the effect of Cntrl-A is initiation a screen binding. But when I run vim in a terminal screen buffer without gnu screen, the effect of Cntrl-A is vim incrementing…
seewalker
  • 1,123
  • 10
  • 18
0
votes
3 answers

Bash script that will survive disconnection, but not user break

I want to write a bash script that will continue to run if the user is disconnected, but can be aborted if the user presses Ctrl+C. I can solve the first part of it like this: #!/bin/bash cmd=' #commands here, avoiding single quotes... ' nohup bash…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219