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
vote
1answer
22 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" && ...
0
votes
0answers
39 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
19 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
15 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
15 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
20 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
35 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
82 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
35 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
40 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
24 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
51 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
29 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
111 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
26 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
50 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
7 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
36 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
57 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
39 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
124 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
42 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
9 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
32 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
31 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) ...
1
vote
1answer
37 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
18 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
69 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
69 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
60 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
87 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
178 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 ...
0
votes
0answers
50 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
62 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
30 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
143 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
35 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
95 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
80 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 ...
0
votes
1answer
37 views

How to test if screen is started, then execute a command in screen and detach it?

screen -list There are screens on: 4278.chat (07/16/15 14:26:47) (Detached) 15127.notifier (07/16/15 13:27:57) (Detached) My goal is to : If chat screen is not ...
0
votes
1answer
726 views

how to resume a screen session?

When I log to my SSH, I have 2 screen sessions: screen -list There are screens on: 4278.chat (07/16/15 14:26:47) (Attached) 15127.notifier (07/16/15 13:27:57) ...
3
votes
0answers
31 views

GNU screen is slow exiting

I've set up my .bashrc to automatically screen -DRA (even though it's a local session). screen works fine, except that if I run exit from the last window or otherwise close it from the client itself, ...
0
votes
2answers
179 views

'screen.linux': unknown terminal type

When I run clear I get: 'screen.linux': unknown terminal type I get this error message when, on a Debian 7 machine running the OpenVZ kernel, from within a screen session, I vzctl enter into a ...
-2
votes
1answer
136 views

Alternatives to byobu as a tmux distribution?

Are there good alternatives for byobu as a tmux distribution?. Minimal, stable and that just works? or most tmux users just learn tmux specifics and configure it all by themselves?
0
votes
0answers
78 views

How to list screen sessions with the currently running commands?

screen -list list the current sessions identified by the pid.tty.host tuple. Is there a way to list those tuples along with the commands each screen session is currently running? I've checked the ...
0
votes
0answers
40 views

Do GNU Screen windows know their name?

I'm trying to write a custom GNU screen key binding which dumps each window's name and environment to file. This would allow me to save/recover a screen session when my server needs rebooting. I ...
0
votes
0answers
84 views

Scrolling with trackpad/mouse in screen on OS X Terminal

I use screen command on Terminal on OS X. When I want to scroll up I change the mode to Copy Mode by pressing Ctrl A Esc. Then I use my trackpad to scroll up/down. It works. However, sometimes ...
1
vote
1answer
546 views

Starting script in screen with cron

I apologise if this has been asked before but I am not sure how to question a search query for this. I am extremely new to linux and I have been learning as I go to solve issues. I am trying to set ...