GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

learn more… | top users | synonyms

0
votes
1answer
80 views

gnu-screen does not clear all its contents upon leaving it

I am using screen in bash under CentOS. After leaving a screen with Alt-a d, I am back in bash as expected. But there are remnants of the screen output left, in particular the status line (don't know ...
1
vote
1answer
417 views

Screen sessions getting killed but processes still live on and run

This is a weird situation I've run into. We have a test server off site (or off site from where I work). To access the server, I need to VPN into its network. I ran screen to execute a long running ...
1
vote
1answer
78 views

list screen window number bash

I was wondering if there is a way to get which window number of screen that is active? As in: screen -X get-window-number I have found no way to list screen windows to output, only the actual screens. ...
0
votes
0answers
52 views

GNU Screen - String Escapes

Can somebody please explain or point me to good tutorial about "String Escapes" used in ~/screenrc. I am playing with $PS1 and ~/.screenrc. While $PS1 seems pretty clear (colors, conditions, escape ...
0
votes
0answers
44 views

GNU-Screen - how can I attach without detaching

I would like to get Screen to do if following if the screen is not attached elsewhere, attach to it if it is attached do nothing (return to command line) if no screen exists then create a new one ...
1
vote
1answer
414 views

how to paste from byobu's screen buffer (ubuntu 12.04 64bit)

I'm running byobu in gnome-terminal, under ubuntu 12.04 64bit. and trying to copy a screen buffer. i.e. by hitting F7, byobu entering "copy mode", then mark screen text by space key. the question ...
0
votes
4answers
426 views

Windows powershell screen equivalent

I am using a windows machine as a ssh server. I want to remotely run some tasks which takes several hours to finish. Is there any way to have persistent process even after remote ssh session is ...
1
vote
0answers
62 views

Running vncserver from screen

At work, we use VNC to run a graphical session on a remote Linux server from Windows-based client laptops (sigh). I have a laptop with a much lower resolution than the external monitor on my desk at ...
1
vote
1answer
39 views

How to execute a given command in a new screen?

I wish to rejoin an existing screen (there is only one on my system) kill window 6: screen -r -p 6 -X kill and execute the following command in a new window: cd /opt/stack/neutron && ...
-5
votes
1answer
98 views

Which is the modern front end to use for screen?

Looking for something that SHOWS opens screens and allows reattachment. Just one of many examples: root@helium:~# screen -r There are screens on: 32159.pts-1.helium (08/15/2013 03:11:54 PM) ...
0
votes
0answers
218 views

gnu-screen multiuser: Cannot opendir /var/run/screen/S-username: Permission denied

I am trying to send commands to a screen session owned by a different user. screen -x someuser/sometask -X somecommand That always results in: Cannot opendir /var/run/screen/S-someuser: Permission ...
0
votes
0answers
46 views

Restore window split in screen after detaching

Sometimes I use screen and its window functionality to monitor several logs. I utilise the horizontal split such that I can see several running logs at the same time. When I detach and re-attach from ...
0
votes
1answer
201 views

GNU screen quitting — sigterm to running process

I want to quit screen session. For this, I use screen -S session_name -X quit. This works well, but not like I would. The program running in screen has a handler for SIGTERM, and I really need this ...
1
vote
2answers
61 views

How to change the default command character in linux screen from cntr+a to cntr+t

I have been using screen in Linux and in some systems I get the default command character in Ctrl+T, but in others I get Ctrl+A. How can I change the configuration in those with Ctrl+A to Ctrl+T?
4
votes
3answers
689 views

GNU screen: change focus in split windows with mouse

Is there a way to enable proper mouse support in GNU screen so that I can switch the focus between split windows using my mouse? In other words, I'm looking for a mouse-driven alternative to typing ...
0
votes
1answer
1k views

Linux Debian Screen is terminating. Can't open screen

I use PuTTY to connect with my VPS server that runs on Debian 7.0 When I try open screen by screen -S {screenName} after enter there's just info [screen is terminating]. It happens on all ...
0
votes
2answers
326 views

Transfer current command to a detachable session (tmux/screen)

I'm currently running a backup and it now needs to be transferred to detachable one like on tmux/screen. Is there a way to do this when the command is currently running? I can send the command the ...
0
votes
2answers
117 views

How can I stop GNU screen killing my terminals on remote detach?

When I start screen in one terminal with $ screen -R foo and then remotely power-detach from another terminal with $ screen -D foo my first terminal dies. (Meaning, if I run it from ...
0
votes
1answer
108 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
0
votes
0answers
60 views

Gnu Screen rebounded control sequence, switch to last-visited window broken

First time questioner here, so please point out the errors I make. I configured my gnu screen so that the control sequence wouldn't collide with emacs: My .screenrc: # Bind control sequence key to ...
0
votes
0answers
24 views

Run screen splitted and specify commands for each windows?

Ubuntu 12.04, I would like to run gnu-screen already splitted in two regions and with certain commands in it, I have found that in new version of screen there are -Q argument, but I still dont get how ...
1
vote
1answer
189 views

How to kill screen session with running sudo command?

I'm trying to write a bash script which would relaunch my NodeJS server. This is how I'm launching the screen with the server: screen -S web-server -d -m node web-server.js which end up in this ...
3
votes
1answer
248 views

screen - move cursor to beginning of line

In bash I can usually move the cursor to the beginning of the line using CTRL+a. In screen, CTRL+a is being used for the special screen-commands. How can I a) use another key-combination for the ...
2
votes
1answer
508 views

How do I stop ssh-agent from forgetting my password after I login to the screen session from SSH?

I have a screen session open in an lxterminal window. If I SSH somewhere, the first time it happens, an ssh-agent window opens and asks me for my private key passphrase, and after that ssh goes right ...
2
votes
0answers
149 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
0
votes
1answer
379 views

set GNU screen background color

I would like screen to change the background color of the terminal (xterm) when started. I want to have a quick way of determining whether I am in screen or not. I often work over shh and it often ...
0
votes
1answer
211 views

How do I supress date/time display in GNU Screen vertical splits?

I am using a copy of GNU Screen packaged for Fedora 18. I copied these neat lines over onto my .screenrc, to show me the host/date-time/windows: # Neat status bar on the bottom of the screen caption ...
0
votes
1answer
82 views

Attach screen on a running terminal

I have a long running process in a (virtual) terminal that unfortunately was not started in a (gnu) screen session. Is there a way to migrate it in a screen session? (obviously, without stopping it) ...
0
votes
0answers
31 views

Linux screen program: determining the communication details of a working connection

I am trouble shooting an issue with a PySerial program which interfaces a step motor via terminal emulation, and going back to the use of screen as a known working interface. When I connect to the ...
1
vote
0answers
49 views

Emacs and Gnu Screen Causing Line Wrap Problems

I have gnuscreen on with multiple "tabs" open. Emacs is on tab 0. When I tab to a different screen and return to Emacs, the lines do not wrap properly anymore. They blend into each other. If I have a ...
0
votes
1answer
299 views

Locking a GNU-screen session after x minutes of non-use on Linux

I have a couple of services running in a GNU-screen session on top of Bash. Because one of the services contain sensitive data I have to constantly either close the terminal completely or lock the ...
0
votes
1answer
54 views

How to switch to an existing vim instance from inside of screen when opening a file twice

When i work on many files with screen and vim, often i try to open a file already open.. I must switch manually between screen windows witch ctrl-space and press ctrl-g until i find the right window. ...
1
vote
1answer
121 views

GNU Screen: run arbitrary command in the status bar?

Is it possible to get GNU Screen to display the output of an arbitrary command, e.g. who | wc -l, in the status bar, refreshing it, say, every minute?
2
votes
1answer
75 views

Gnu screen: Problems with %F

I'm trying to set region captions to list all windows on active (focused) screen region, and only the title for other regions. For example: caption always "%?%F %w %: %n*%t %?" should display ...
0
votes
0answers
71 views

Prevent a GNU Screen session from closing

So I run Irssi on my VPS inside a GNU Screen session and sometimes accidentally close Irssi process when I log out, therefore forgetting to close the Screen session beforehand. Is there a way that I ...
0
votes
1answer
193 views

Setting GNU Screen to send escape codes to outer terminal on TI

I’m using GNU Screen inside mintty. To get the scroll wheel to work, I had to switch the mintty scroll wheel mode with an escape code (^[[?7787h). This has the effect that the scroll wheel does not ...
0
votes
1answer
1k views

No Sockets found in /var/run/screen/S-root. when using `screen`

I want to screen on a machine with fedora the result is: [root@kitch udp]# screen -ls No Sockets found in /var/run/screen/S-root. [root@kitch udp]# screen -ls listen_for_exception No ...
1
vote
3answers
874 views

vim under screen under PuTTY working with mouse wheel?

Is there any way to make this work? i'd love to scroll my files in vim with the mouse scroll wheel. Also, i wouldn't mind scrolling the gnu screen buffer with the mouse wheel as well, without having ...
1
vote
1answer
791 views

List processes being run inside a screen (Linux) session

I have several screen sessions, each one of them is running one java application. For example, I have these 3 screen sessions : 7361.ARM48 (Detached) 7397.ROP90 (Detached) ...
0
votes
0answers
358 views

Autostart multiple screen sessions in Ubuntu Server

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
0answers
10 views

Autostart multiple screen sessions in Ubuntu Server [duplicate]

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
1answer
56 views

Emacs and Unix Screen

I'm in Screen and have one window set to emacs. When I leave that window and maneuver to a different one, say screen two or three, the text in the original emacs window gets discombobulated. The line ...
2
votes
2answers
1k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start a screen when I ssh in, and NOT exit my ...
0
votes
2answers
155 views

can a .screenrc key binding contain variables?

I'm working on a customer .screenrc for Screen and I can't seem to find a way for it to support variables. Here's what I'm trying to accomplish: I want to press ^l, then specify a name, and that ...
0
votes
3answers
48 views

Unable to access shell on ssh

I have added the following line to my .bashrc file to start gnu screen on login: exec screen But it seems to go in a loop (may be that is its starting screen also on screen start). I am not able ...
3
votes
1answer
375 views

How to get GNU-Screen Command in Linux to echo locally

I'm looking to run screen screen /dev/ttyS0 115200 and echo my commands locally. This is one of those rare phrases where google spits out a lot of irrelevant results.
0
votes
1answer
60 views

putting “screen” in ~/.profile does nothing

I want to always use "screen" in any terminal. i've added into my ~/.profile a new line: "screen", just like it said here: ...
0
votes
2answers
166 views

Can gnu screen prompt for a title when a new window is created?

There are a number of questions about automatically naming screen windows based on what's running in them. But sometimes why you created the window is more important than what you're doing in it. ...
1
vote
2answers
136 views

Is there a way to make GNU Screen not prompt for confirmation?

My googling only left me the clue that this was the case for old screen, and now the new screen prompts for confirmation (e.g. whenever I try to kill a window or exit out of screen) . Is there a ...
0
votes
3answers
218 views

Tell GNU screen to 'reattach or create and execute command'

For using IRC, I usually open irssi on my headless server in a screen session. Then, sometimes I detach it to wait for an answer, but sometimes I'm not sure if a screen with irssi is already open on a ...