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

Auto attach to gnu screen on remote host (ssh) only

So I distribute my dotfiles on all my machines. I want to put something like the following in my .zshrc # Autoload screen if we aren't in it. if [[ $STY = '' ]] then screen -xR; fi Which I got from What's in your .zshrc? But I only want to attach…
Mark
  • 4,446
  • 5
  • 26
  • 34
0
votes
1 answer

Linux start screen on startup

I'm trying to start a screen session on startup, so I added my script at the end of rc.local screen -S ws sh -x /var/includes/websocket/start.sh; But that doesn't work. My goal is to be able to run in a screen session (screen named ws) 2…
exomic
  • 466
  • 6
  • 16
0
votes
1 answer

GNU screen - cannot enter command mode in a Putty session

Opening a shell session on a Linux Red-Hat 5 system, using Putty over ssh, I launch a screen session, but I find that when I press CTRL+A that I do not see the command prompt. All other screen commands work fine, apart from this one. This appears to…
Pete
  • 143
  • 6
0
votes
3 answers

How to start a process from another application and then open a terminal to that process in gnu screen

I'd like to be able to launch a process from a GUI application (right now I'm thinking specifically of letting an eclipse user -- possibly via a plugin -- click a button to launch a build using my organization's build system). I don't want this…
Charlie
  • 819
  • 3
  • 12
  • 17
0
votes
1 answer

Where can I learn about programming a serial/terminal interface?

I have a project I'm going to be doing on a microcontroller. I plan on having it interface with my computer over a USB serial connection. I tried doing the basic tests like putc(getc()), but I'm having trouble getting it to behave as I expect. With…
Earlz
  • 62,085
  • 98
  • 303
  • 499
0
votes
0 answers

Startup commands for screen

I'd like to set up screen to open a specific set of files for editing at startup. I'd like to have something like this in ~/.screenrc: chdir /home/andrew/scripts/ screen -t scripts gvim script1.sh chdir /home/andrew/scratch/ screen -t test I can't…
ajwood
  • 18,227
  • 15
  • 61
  • 104
0
votes
1 answer

Loss of Vim keybindings after screen detach and SSH logout

On one of the servers I commonly work with (Ubuntu 11.04), I get a hanging logout whenever I do following: Log in via SSH Start screen Run Vim {edit files, etc} Detach screen session Log out of server ("exit") After doing, it hangs. (says…
tommcdo
  • 277
  • 1
  • 2
  • 7
0
votes
1 answer

Execute command after screen terminated

How can I set screen to execute command when specified screen session is will terminate?
Robert
  • 507
  • 2
  • 9
  • 20
0
votes
1 answer

Defining startup cron job with screen running django

I want to run my development django server at startup so I defined following cron job: @reboot screen -d -m django-admin.py runserver 192.168.0.28:8000 But it didn't work. What is really interesting, when I copy/paste directly to terminal and…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
0
votes
1 answer

Where is the code for the function under c in Screen's copy-mode?

This question is based on the thread. I am interested in the function under the button c because of my current interest in the similar function in the column detection of OS X S.Leopard's Preview. Where is the code for the function under c in…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
0
votes
1 answer

SSH x forwarding/screen via script

I am trying to reduce typing by writing a script executing several ssh commands. While it is no problem to simply open an editor for example, I can't open an editor with a specific file: this works: editFile="ssh -X -t $username@$serverIP…
herbert
  • 9
  • 2
0
votes
1 answer

how to kill running script within a dead screen session

I have a script started in a screen session, then detached, tried to reattach but now this session is dead. The script is still running. How I can kill the script, being unable to reattach the screen session? Unfortunatly I have killed the screen…
0
votes
3 answers

To have Vim-like K in Screen for MySQL

This question is based on this thread. Problem: to access MySQL's manual when the cursor is at the beginning of the word by Ctrl-A Esc Ctrl-m where m reminds about Mysql. How can you build a Vim-like K in Screen for MySQL's manuals?
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
0
votes
2 answers

Unexpected result with gnu-screen and call()

As a part of a bigger application I am trying to create an "screen" with python using the subprocess.call(). Creating the screen with arguments -d -m should create it in background and not switch to it. If I run screen -d -m -S test on the…
varesa
  • 2,399
  • 7
  • 26
  • 45
0
votes
1 answer

GNU screen: how to highlight status bar when the command character is pressed

I have just started using the hardstatus capability of GNU screen to get a status bar of at the bottom of my terminal. This is particularly useful when running nested screen processes as I get nested status bars which makes it clear how many times…
Tom Ellis
  • 9,224
  • 1
  • 29
  • 54