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

-1
votes
0answers
10 views

Enable scroll in conemu with Windows LXSS bash

screen in Bash from Windows Linux Subsystem used in ConEmu have no scrolling enabled. How can I enable it?
0
votes
1answer
31 views

Screen ctrl+a key not working for going to start of line

I recently started using screen: ctrl+a key not working for going to start of line How do I configure it? Is there a better alternative over screen?
0
votes
0answers
8 views

How can I keep the bell-in-window from inverting the window title in gnu screen

This is really an edge thing but maybe somebody has an idea. I started with the screenrc entry hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" and I've spent a lot of time ...
1
vote
1answer
30 views

How to change SYSIN and SYSOUT (curses mode) for a background process to another terminal session (screen utility)?

I currently run an background process started by a deamon process. It has no terminal and works fine as it doesn't have any screen i/o. It is started via a shell script which I can change. The shell ...
0
votes
0answers
10 views

How to configure screen to treat LF characters as newline?

How can I adjust my ~/.screenrc file to treat LF characters as new-line? https://www4.cs.fau.de/Services/Doc/screen/screen.html#SEC5 I'm looking at: Note: Your terminal must be configured to treat ...
0
votes
1answer
14 views

ctrl + c will not kill terminal (osx bash) program `screen`

I got into a GNU screen and couldn't get out of it, it was hogging my terminal window. I tried a number of hotkey combos with no success. I've listed a few of the hotkey combos below. Command $ ...
1
vote
0answers
52 views

Kill all Screen Sessions with Same Name

I have multiple screen sessions with the same name due to a bug. How can I remove these all in 1 command without affecting other screen sessions? I used the command from this post: http://...
1
vote
1answer
28 views

GNU screen is displayed differently on different machines

I am running $ screen --version Screen version 4.03.01 (GNU) 28-Jun-15 on Debian Jessie via SSH. If I create a screen from a machine running Gentoo and then use it from there, Unicode characters (...
0
votes
0answers
6 views

“screen -r” attaches to wrong screen if I have screens with similar names

Screen version 4.01.00devel (GNU) 2-May-06, running on Ubuntu Server 14 I make a screen, detach, make another screen with a name matching the first few characters of the other screen's name, and ...
1
vote
1answer
26 views

Launch consecutive commands in screen

I would like to launch cmd1 and cmd2 in the same screen instance. I want cmd2 to be launched only when cmd1 has completed. I have tried this: screen -d -m ./cmd1.bash "$File" && ./cmd2....
0
votes
0answers
46 views

vim comment issue with GNU screen and solarized

I just installed solarized. I am using the Xresources and vim color file. All works fine when not inside GNU screen. When running vim from inside GNU screen, the comments look different - they are not ...
1
vote
0answers
28 views

SSHing gives me UTF-8, but using 'ssh -t' does not

I'm accessing my desktop machine using SSH to connect to a Screen session. If do this: ssh -p 12345 111.11.111.111 screen -r "Jelly" I have UTF-8 support working fine. However, if I do this: ssh -...
0
votes
1answer
23 views

Screen does not read /etc/profile.d on startup

Whenever I start screen, my alias definitions in /etc/profile.d are missing within screen. How can I make screen read/source all files in /etc/profile.d/ on startup?
1
vote
1answer
10 views

Easily copy current command line in GNU-Screen

I want to copy the text command to copy in the current command line in a very fast way. user@server:~/somepath$ command to copy I know this way: Use Ctrl+[ to enter copy mode, Navigate by arrow ...
0
votes
0answers
17 views

Screen session behavior on shutdown

I want to run a PHP-Script inside a screen session at startup(I figured that out already). It is very important that the PHP-Script is exited like it does with "Ctrl + C". Now I don't really know how ...
21
votes
3answers
3k views

Move a program started in GNU screen out to another terminal

I want to terminate an instance of GNU screen whilst preserving the process running inside it. So I opened my regular terminal emulator program and executed screen. Then I used that instance of ...
0
votes
0answers
21 views

GNU Screen gives odd linewrapping behaviour for terminal applications

I followed these instructions to set up GNU Screen to run two terminal applications on Computer A, then connected to them from Computer B. However, on Computer B, I seem to get strange linewrapping ...
0
votes
1answer
37 views

How can I move my current session from GNU screen to tmux?

My IRC client, irssi, is currently active inside a GNU screen session. In hindsight, I wish that I'd have used tmux instead of GNU screen. How can I migrate the active process (or session) from GNU ...
3
votes
1answer
91 views

Generate encrypted password for a GNU screen session

How to programatically generate a password for a GNU screen session? Normally, to define a password for an existing GNU screen, we have to: Start a screen Do Ctrl+A :password Upon reattach, screen ...
0
votes
1answer
51 views

How to auto execute a command in screen window while creating a screen session

I have configured my .screen rc to create 10 windows while creating a screen session as screen -t task1 0 screen -t task2 1 screen -t task3 2 . . What I want is whenever I ...
1
vote
0answers
52 views

Running GNU Screen on Raspbian with vertival split spilling content

I am running Screen on a Raspberry Pi. My shell on the Pi is ZSH with OH-MY-ZSH. I have connected to the Pi via SSH from a Mac. When I run certain commands like HTOP or Vim the output spills over to ...
0
votes
1answer
25 views

Can I pass a key combination through screen to a program?

I've got screen setup to switch windows with the function keys. However, I am trying out Vim debugging and to start it I'm told to use the F5 key. Obviously this just switches me to screen window 5 (...
3
votes
1answer
61 views

Why is GNU screen interfering with Vim's Ctrl-Pageup to switch tabs?

I normally use Ctrl+PageUp and Ctrl+PageDown to switch tabs in Vim. But when running Vim inside GNU screen, they don't switch tabs and instead have the effect of switching case. I am running the ...
0
votes
0answers
33 views

GNU screen - open new window in working directory of current window in a named (sessionname) session?

In order to open a new screen window in the same directory as the current working directory of the screen window you are launching it from (rather than the directory you initially launched the screen ...
1
vote
2answers
224 views

iTerm2 -> ssh -> gnu screen -> split window: scroll wheel not working

I'm using Mac OS X as a workstation. With iTerm2, I connect to a remote host (Ubuntu Server) using this command: ssh -t user@host screen -D -R -R But I can't get the scroll wheel to work correctly, ...
1
vote
1answer
29 views

Does GNU screen issue signal 28?

Bit of a long shot... I'm executing a long-running process that takes several hours. The process is the re-indexing of the CDDB database's fuzzy matching file. The process keeps quitting after a ...
0
votes
1answer
58 views

GNU Screen hangs in ConEmu

I just did an update of Cygwin on a Windows 7 box. When I open ConEmu to a Cygwin Bash terminal, everything seems fine. However, if I run GNU Screen, the terminal locks up until I forcibly kill ...
0
votes
0answers
9 views

Exiting copy mode in GNU screen takes too long when tailing

Start screen, and run a command that tails a frequently-updated logfile, or a command akin to this: while true; do date; sleep 1; done Now hit CTRL+a+ESC to enter copy mode. Scroll around or ...
0
votes
1answer
37 views

Backup MySQL, using Screen and Crontab

I'm trying to backup my database's table every day, using mysqldump, screen and crontab. If I run only mysqldump, it dumps correctly, but if I do it trough screen, the output file is blank. Editing ...
0
votes
1answer
89 views

Can't open display after reattach screen session

When I first start my screen session my X-display works. I.e., I can start X-apps like xterm, etc. However, when I reattach my previous screen session, from a different X, the X-display no longer ...
0
votes
1answer
65 views

Moving from screen to tmux but having trouble in copying (double click doesnt work in tmux)

While in putty double clicking a word copies it to clipboard, I am unable to copy by doubling clicking when I am using tmux in putty. I am able to do it using SHIFT key, but I want to do it without ...
0
votes
1answer
137 views

How can I send keyboard input into a GNU screen session without attaching to it?

I need to send keyboard input to a GNU screen session without attaching to it. I have tested this example but it does not work: screen -S ffa3 -X "say SERVER REBOOT IN FEW MINUTES" No I am also ...
-1
votes
1answer
50 views

How do I create a new blank window in screen when I have multiple sessions running?

I'm running multiple concurrent screen sessions for a variety of projects. I'm attached to one and issue the command (Ctrl-A c) to create a new window. It creates the window, but strangely, it's a "...
0
votes
0answers
10 views

gnu-screen scrollback mode documentation for whether it blocks execution?

I saw in this answer that gnu-screen's scrollback mode blocks execution because gnu-screen "blocks the output pipe". Where is the official documentation for gnu-screen's scrollback mode behavior (...
0
votes
1answer
35 views

How do I save my screen GNU session?

I am trying to use a GNU screen session to go through a long code line by line to debug. I'm working in it through a shell. I start the screen with screen -S Name. Normally I run a few lines of ...
0
votes
1answer
32 views

How to open up an old screen session after ssh logged out

I am getting the following message: $ screen -R Poly There are several suitable screens on: 14583.PolygenicOCD3 (Detached) 61499.Poly (Detached) 13205.PolygenicOCD (Detached) 62250....
1
vote
1answer
41 views

What is this 'stuff' in the command being sent to screen?

To send Control+C to a detached screen-session I can do as has been demonstrated elsewhere: screen -S NameOfSession -p 0 -X stuff $'\003 or screen -S NameOfSession -X -p 0 stuff "^C" My question ...
0
votes
1answer
20 views

gnu-screen's caption/hardstatus: how do you append text after the session-name?

For older versions of gnu-screen (i.e. without the %S), I found out how to print the session-name in the hardstatus or caption of gnu-screen by reading this answer. The solution is to add the ...
0
votes
0answers
80 views

R: how to open a running r script in rstudio

I've been running an analysis in a computer cluster that works on linux from my computer, and I run it on rstudio. This analysis takes like 12 days, so before running the r script I made a "screen" to ...
0
votes
1answer
79 views

Make less use alternate screen, but only if entire file won't fit on one screen

I'd like less to quit immediately if the entire file can be displayed within one screen. For this, I'd use the -F option: -F or --quit-if-one-screen Causes less to automatically exit if the ...
0
votes
1answer
68 views

where to check out the screen detached command line application crash log on Ubuntu

So, I was running some application with the following command line after SSHing into my server, and after then detached the window by ctrl+a ctrl+d: SCREEN /bin/bash -c php index.php -whatever > /...
1
vote
2answers
107 views

bash like --init-file in the tcsh

The bash/screen scenario: screen -dmS sessionname -c /path/to/screenrc the /path/to/screenrc contains for example screen -t windowtitle1 bash --init-file /path/to/window1.bashinit screen -t ...
2
votes
1answer
258 views

Starting a detached screen session and a Java program with one command

I found an answer on super user that the following should create a screen session in detached mode. But it is not working in my situation. screen -dmS sessionname java -jar /root/programone/myprogram....
0
votes
0answers
62 views

Running a code remotely with screen but killed shortly after logout

I often run a code on a remote Linux/Ubuntu desktop with the use of screen. So I log in through SSH, start a screen, start the job, detach the screen and everything works fine. However, recently the ...
0
votes
2answers
65 views

Can't attach to GNU Screen - not showing in list but still running

I have screen running but it doesn't show in a list and it won't allow me to attach it. $ screen -ls (08-21 12:38:23) No Sockets found in /...
1
vote
0answers
32 views

GNU-Screen super-key as escape

The super-key (windows key, et al) isn't representable using ascii or terminal escape sequences, so I doubt a tty-oriented utility like screen would support it, but does it? Can I use the super-key ...
0
votes
1answer
167 views

No notifications in irssi for new private messages

My problem is that I get no notifications in irssi when receiving a new message: whether that be a private message, or just a message from a chan which isn't my current window. I use two different ...
0
votes
1answer
37 views

Change to Virtual Console 2-4 on target system via PuTTY and screen

I am trying to figure out how to change to Virtual Consoles 2-4 on a target system using PuTTY and screen. I have read the screen man pages and the replies here, but I still can't figure it out. ...
0
votes
1answer
126 views

How do I view the tab completion function for a command in bash?

I ultimately want to alias screen -r. I mostly want to do this because that command has an awesome tab completion feature that shows me the current GNU screen sessions. I want that power with the ...
0
votes
2answers
95 views

How do I set key bindings for ctrl page up and ctrl page down in gnu screen?

So ctrl page up and down are all the rage nowadays, and I'd like to be able to C-p and C-n in gnu screen when I hit ctrl-pgup and down. I've tried and tried but the documentation is a little thin. Any ...