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

Unable to annotate windows in GNU screen(Unix)

I have just started developing in Unix environment and playing with screens and emacs. My question might be preliminary but am unable to find an answer online. I am able to create new windows in my screen ; however I am unable annotate them. I know…
0
votes
1 answer

Copy lines longer than terminal window

Is it possible to copy a line that extends past the edge of the viewable window in GNU screen? When I press Ctrl-a [ and then hit space, I can only move to the edge of the visible window, even though the line extends further. I am trying to copy a…
awitney
  • 11
  • 1
0
votes
1 answer

Is there a way for Vim to use words in all open files in a Screen session for autocompletion?

Title says is all: start Screen (as in GNU Screen, the screen multiplexer) open file in Vim create a new Screen window open file in that window switch back to first Screen window, and have Vim recongnise the contents of the file in the other…
klokop
  • 2,414
  • 2
  • 18
  • 22
0
votes
1 answer

Show execution time of plpgsql procedure in screen socket

I need to display execution time of psql command which is executed inside screen socket. Usually I use command: psql -c 'select 1' -d my_db -U my_user -h localhost and output of this query looks like: ?column? - 1 row How can I get execution time? I…
Borys
  • 2,676
  • 2
  • 24
  • 37
0
votes
1 answer

Keep GNU self-defined screen window name from auto update

Under GNU screen, one can use c-a A to give current window a name. However, screen also detect program running and it can overwrite the self-defined window name. For example, I can specify a window name call server log. If I do some job control and…
clwen
  • 20,004
  • 31
  • 77
  • 94
0
votes
3 answers

swap-windows tmux in list

I have a bunch of tmux panes open and I would like to sort some of them from the list that I can bring up with Ctrl-b ". In gnu-screen, I can move specific items up and down with the comma and semi-colon keys (IIRC). Is there something similar I…
719016
  • 9,922
  • 20
  • 85
  • 158
0
votes
2 answers

Screen configuration in Linux

What do the following configurations in Linux Screen mean? 1. caption string "%w" 2. caption always 3. activity "@check %n" 4. defmonitor on 5. vbellwait 0 6. vbell_msg "whoops" 7. vbell off 8. defscrollback 3000 And where do I learn or have a…
ruggedbuteducated
  • 1,318
  • 7
  • 17
  • 22
0
votes
2 answers

Open screen in terminal after user login

When a user logins to my Debian server using e.g. Putty, I need to perform the following: It will automatically execute command screen -r MyWindow, and the user won't be able to leave the screen window, so I want the user to have disabled all…
vrbadev
  • 455
  • 1
  • 7
  • 20
0
votes
1 answer

Create a new Screen Window over SSH?

I have a function I found online to add to my .bashrc which spawns a new SSH session with the hostname: # Opens SSH on a new screen window with the appropriate name. screen_ssh() { numargs=$# screen -t ${!numargs} ssh $@ if [ $TERM ==…
dueyfinster
  • 317
  • 2
  • 5
  • 14
0
votes
1 answer

Creating a SSH screen through PHP with phpseclib

I have a PHP script in which I am trying to create a screen on my ssh server with the PHP SSH library phpseclib. This is the function that I am using to try to create the screen: function startscreen($ssh, $user) { $ssh->exec("screen -S…
Runner
  • 115
  • 2
  • 11
0
votes
1 answer

Detaching from inside screen. ^a, ad doesnt work

Firstly, I hope this is the right place for this question. I have an odd problem with screen detaching. I can detach from most every screen I create, except one I am using to host a minecraft server. When I hit control A D, all I get is another…
0
votes
0 answers

Screen Manage Multi Session

I've a session named "super", and in this session I've used 3 times the command ctrl-a c, so that I've 4 shells that run in "super" session. My question is: if I connect via ssh to my machine, how can log directly in "3 bash" shell (for example)? I…
Sim Sca
  • 413
  • 7
  • 18
0
votes
1 answer

Network connection lost upon screen remote detach

I'm using secureCRT to ssh to Linux based server. I use "screen" command to keep my sessions alive. But things are becoming strange when I using two PC, OK, here's the scene: On PC-A, start a new screen session named "test"; On PC-B, type screen…
shao
  • 31
  • 3
0
votes
1 answer

Executing screen command from Java

I am using the following code to execute an SH file in Linux Runtime.getRuntime().exec(new String[] { "/bin/sh", "-c", file.getPath() }); This code works however I can't use the screen command in the SH file when executing it from Java, I get this…
Keir Nellyer
  • 913
  • 5
  • 12
  • 20
0
votes
4 answers

Execute sh file from Java

I am trying to execute an sh file via the following code (CentOS machine btw) Runtime.getRuntime().exec("sh " + file.getPath()); I use this code for windows and it works fine Runtime.getRuntime().exec("cmd /c start " + file.getPath()); Could it be…
Keir Nellyer
  • 913
  • 5
  • 12
  • 20