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
26 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 ...
0
votes
1answer
25 views

Running Cygwin Screen as a standalone program?

Would it be possible to separate Screen from Cygwin, and run it without running Cygwin first? If not, are there any alternatives to screen on Windows?
1
vote
1answer
41 views

VIM + screen on remote (ssh) linux machine

The problem happens with my text in vim when I'm working inside of screen this is my .screenrc file defshell -bash startup_message off term screen-256color and this is what I can see in my terminal ...
0
votes
1answer
24 views

gnu screen: previous search result

In GNU Screen, I can do a reverse text search by pressing ^A and then typing [?search_string, and press n to go to the next (reverse search) result. But if I go too far and want to go back one result, ...
0
votes
1answer
13 views

GNU Screen equivalent for X11 aplications [duplicate]

What is the X11 equivalent of GNU Screen for X11 applications? I know there is VNC, possibly RDP and other candidates, but last week when tuning up my VNC config I've stumbled upon a project, that was ...
0
votes
1answer
33 views

Why is vim inserting the contents of ". after I leave insert mode

vim is doing something that I can't quite figure out. When I leave insert mode, and navigate with j/k/h/l within a second of doing so, vim appends the contents of the ". buffer. On a tip from How to ...
0
votes
1answer
46 views

Resize terminal Emacs window to fit when resuming a Screen session from larger display in Ubuntu

Whenever I start a GNU screen session running GNU emacs (nw, so in terminal) on my desktop with a large monitor, then resume it on my laptop, emacs still thinks it's on a large monitor. This means as ...
0
votes
1answer
22 views

GNU screen version confusion

I try to use mousetrack on in screen in Debian Jessie, and it is supported from version 4.1 Mouse in screen(1) on the Linux console? But there are some confusion in the screen version. dpkg -s ...
0
votes
0answers
33 views

GNU Screen hardstatus string not highlighting active tabs correctly

Good Morning, The hardstatus line of my .screenrc file is acting weird on CentOS but works fine on Ubuntu Server. The line I am using is this: hardstatus string '%{= kB}[ %{B}%H %{= kB}]%{kB}[%= ...
0
votes
0answers
20 views

Mouse works erratically/intermittently over remote SSH

I work remotely sometimes. I’ll use Vim inside a Screen session, over SSH. I use the mouse in Vim. Sometimes the mouse breaks. One of these things happens: Random characters get inserted into my ...
0
votes
1answer
63 views

tmux / screen ctrl+arrow (left right) doesn't work on SSH

I've configured tmux to skip words on Ctrl+right / left : set-window-option -g xterm-keys on It works just fine, but as I do SSH, it doesn't work and prints ;5D or ;5C.. The same issue occurred ...
1
vote
0answers
32 views

Make serial gnu-screen send a line at once

Is it possible to send lines at once in linux screen utility, if used as serial terminal, like for example screen /dev/ttyACM0 9600? By default, every character typed is sent immediately, but my ...
1
vote
2answers
70 views

gnu screen not to change my window titles

I set meaningful names to new windows I create in gnu screen, but then when I 'cd' or open vim that name gets changed to 'pwd' for instance. Is there a way to prevent screen from changing the title? I ...
0
votes
0answers
10 views

How to hide/unhide a particular window in screen?

Is there any command or hack to get such a behavior? Or is there a better way to get what i want(taking the unused window out of context temporarily instead of killing it) instead of this ?
0
votes
0answers
26 views

How can I automatically run two commands in different screen windows with an argument?

My process is ctrl+a 0 command $1 ctrl+a 1 /join#$1 I'd like to shorten it down to one command.
0
votes
1answer
34 views

How do you cd to the directory of another screen window?

gnome-terminal has a great feature where opening a new tab or window starts the new shell with cwd = the cwd of the previously-focussed window. I usually run GNU screen in one of my gnome-terminal ...
0
votes
1answer
46 views

Screen vs. socat

There is already a question: Screen fails to release pty and there is no answer (only a workaround has been provided so far). My case is different and I would like to know the answer to the original ...
0
votes
0answers
20 views

Incosistent behaviour of GNU screen when run from local machine or ssh

I have noted the following incosistent behaviour of screen. I run screen -dmS test screen -S test -X stuff "ls -lh^M" The first line starts a screen session named "test", and the second line ...
1
vote
1answer
47 views

Play GNU screen terminal sessions and slow them down

I have some log files made with GNU screen which I would like to watch. These use elinks and vim, it is not simple bash text. If I use cat, it almost works save that it is too fast. Is there a way to ...
1
vote
1answer
27 views

Follow current window in screen -x

Using screen -x (after connecting over ssh) from a second computer is a great way to follow what someone is doing in a terminal. However, if the first person changes the screen window (C-a p or C-a ...
1
vote
0answers
47 views

Gnu screen, using the exec command in .screenrc

I have added the following lines to my .screenrc bind -c music u exec amixer sset Master,0 5+ >& /dev/null bind -c music d exec amixer sset Master,0 5- >& /dev/null bind -c music t exec ...
0
votes
0answers
24 views

screen wiped after chmod 755 to screen session

# screen -ls There are screens on: 22667.abc (Detached) 20128.tmp (Detached) # screen -r 22667.abc It just hanged, and I executed ctrl+Z to terminate and find another ...
0
votes
0answers
20 views

GNU Screen stops transmitting Ctrl-s

I am accidentally activating a feature in Screen that stops Ctrl-s from working properly. When this happens I can't C-x C-s, save or C-s, search in Emacs until I C-a C-k, kill the screen. New ...
0
votes
0answers
34 views

If screen's C-a A command does not work, what internal state must be wrong?

In the Linux command screen, you can type C-a A to change the name of a window. Right now I am running a screen session with six windows. The first four have custom names - great. The last two I want ...
0
votes
1answer
69 views

Conditional values in .screenrc?

I've rearranged my work machine a bit and now keep my terminal open on a vertically-oriented monitor, which has caused me to have somewhat different needs from GNU screen. Up until this change, I've ...
0
votes
1answer
42 views

Check for screen using crontab

Currently, I'm using Debian with the following cronjob for screen at reboot: @reboot screen -dmS app1 /home/app1 @reboot screen -dmS app2 /home/app2 The problem is, that sometimes the application ...
0
votes
1answer
34 views

Automating VPN launch

I've recently set a VPN connection up, between my home computer (Ubuntu 14.10) and a dedicated server (Debian 7.7), using OpenVPN. So far so good. My question is, how would you go about simplifying / ...
1
vote
1answer
94 views

Screen window title using zsh

I would like to make vim screen tabs name more useful. I've turned on the screen plugin, and tried several approachs. One that I would enjoy most was to make the screen name fixed using another load ...
1
vote
1answer
39 views

Screen copying (preferably moving) to another server

I have a screen on a server machine and want to transfer it to another machine which has the same file system configuration (and possibly same hardware). Is it possible to transfer the screen to ...
0
votes
0answers
59 views

How to prevent terminal bell from going off when exiting vim from within a nested screen session

My vimrc file contains the following lines to set the window title start and end strings respectively. When I enter a vim session and my konsole terminal is either outside of screen or within a ...
1
vote
1answer
36 views

tmux multiple instances of the same session

I've recently converted from gnu-screen to tmux. I am struggling with 1 thing. My workflow is something like this. I create a session for each "task" I am doing at any point in time. That way I can ...
13
votes
5answers
2k views

PuTTY or OTHER - Keep executing command even after exiting PuTTY [duplicate]

I have a couple of commands that I need to run. These commands needs to continually run even after I exit my interface. When I have access to the Linux GUI, I execute something like: cd ...
2
votes
3answers
138 views

How to open one GNU screen tab for each directory in a list

I have the following script - it sort of works. #!/bin/bash ... define plugins, etc for plugin in ${plugins[@]}; do screen -t $plugin done Want I want it to do open gnu-screen and for ...
1
vote
1answer
46 views

preventing vim from destroying screen's scrollback buffer

when not using gnu screen, vim exits without littering my scroll back buffer. It vanishes, and all i get is a new bash prompt. everything that was on the screen before starting vim is there. when its ...
1
vote
0answers
57 views

Get command output from detached screen

I am running a detached screen session, and running a command into it with screen -x, like so: screen -S $SESSION -X <command> This works fine, though I would like to be able to catch the ...
0
votes
1answer
38 views

Keep screen running after starting it with an alias and running some commands

I have a bash alias to move into a project folder, start screen, and pull new changes from git. it looks like this: alias start_manager2='cd ~/programming/manager2/ && screen -t "main" ...
0
votes
1answer
28 views

Why do i get a file named history in each folder in bash?

For some reason I get a bash history file in each and every folder where I issue any command. The file is called history rather than the normal .bash_history. My .bash_profile has the following that ...
0
votes
0answers
127 views

how to show battery percentage on gnu screen hardstatus line

I currently have this as my hardstatus last line on gnu-screen the ~/.screenrc entry is as follows (just incase someone want something similar) hardstatus alwayslastline '%{= g}[ %{G}%H %{g}][%= ...
0
votes
0answers
73 views

Strange behaviour of vim inside of gnu-screen

I use screen a lot and inside one of my screen windows, I use vim a lot. I have, however, sometimes, some strange behaviour of vim: After a while of using vim and switching forth and back between ...
0
votes
2answers
188 views

Correctly display the GNU screen session title in status bar

in GNU screen, I want the title of the session to be displayed in the status bar. It is working but not exactly as I wanted. I have the following backtick defined in my .screenrc: backtick 100 30 30 ...
0
votes
1answer
73 views

Using GNU screen to create a split screen environment from command line

Could someone please point me towards the syntax for using GNU screen from the command line. On a previous cluster, I managed to create a bash script that would create X number of tiled shells, each ...
2
votes
2answers
2k views

How can I set the parity bits when using screen to access a serial port

I typically use screen(1) to open a serial port with the command: sudo screen /dev/ttyUSB2 115200 I've tried setting parenb (and a number of other things) using the following command: sudo screen ...
1
vote
2answers
205 views

Running Screen after switching users

After switching users (with su) I cannot run screen: % screen -L Cannot open your terminal '/dev/pts/5'. How can I run screen after switching users?
0
votes
0answers
55 views

Get growl notifications from within a unix screen which is not in focus from a remote SSH session

Using iTerm2 I have growl notifications working within a (unix) screen session on remote servers when that window has screen's focus: My server's ~/.bashrc has: growl() { local ...
0
votes
1answer
32 views

Is there a way to send a screen command to a screen session “above” my current screen?

I would like to be able to send a screen command to a screen session "above" my current screen session (which is on another server). Imagine the scenario of starting an initial screen session and from ...
0
votes
1answer
199 views

How can I ring the audio bell within a bash script running under gnu screen?

In a konsole terminal window outside of screen running a bash shell with TERM set to konsole-256color if I type: echo -n $'\a' or echo -n $'\eg' or ./ringbell where contents of ./ringbell is ...
0
votes
1answer
101 views

How to determine if a screen is running jobs without attaching to it?

I wrote a zsh script that launches many screen sessions and runs a different command in each of them. When the script is executed there are 72 screens in total, so checking if a job is finished or not ...
1
vote
1answer
87 views

How to give each virtual terminal in GNU Screen it's own background color?

I have a dream: I want each virtual terminal within GNU Screen to have it's own unique background color. I think I can fake it in an .bashrc script that emits xterm control codes to set background ...
1
vote
2answers
303 views

GNU screen changes vim syntax highlighting colors

I am trying to use vim inside a GNU screen session, but whenever I open vim inside screen the syntax highlighting uses completely different colors when compared to when I open vim outside GNU screen. ...
2
votes
1answer
324 views

bash doesn't show current working directory on screen

When using iTerm2 on my OS X, the bash prompt shows my current working directory normally: mbp:tp0 renato$ But when I use screen, the bash prompt changes to: bash-3.2$ How I make the bash prompt ...