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
0answers
20 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
17 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
37 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
15 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 ...
0
votes
0answers
31 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
9 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
23 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
31 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
0answers
29 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
18 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
26 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
0answers
17 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
39 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
21 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
17 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
24 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
54 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
38 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
64 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
36 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
54 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
29 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
125 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
41 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
47 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
33 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
102 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
71 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
171 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
70 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
1k 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
149 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
52 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
29 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
128 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
70 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
83 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
253 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. ...
0
votes
1answer
247 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 ...
0
votes
0answers
70 views

Reload user group assignments inside tmux (or byobu/screen)

This question handles reloading group assignments without logging out, but it doesn't really treat a situation where you want the group assignments to be reset inside an existing tmux (or byobu or GNU ...
2
votes
1answer
164 views

How can I cause vim to copy text to GNU screen's clipboard buffer?

I want to yank text with a command to vim and have it end up in screen's clipboard where it can be pasted to a different application via ^A] later. vim needs to do the copying (not screen's copy mode) ...
1
vote
1answer
40 views

screen - reattach last session

Is there a way of getting screen to directly reattach to the last used session if there are multiple sessions available? I always have at least one screen session running on my server, and always ...
0
votes
1answer
32 views

Launch screen terminals with set directory

How can I get my screen session to open different terminals in different directories on login? For example, In my .screenrc file I have the following: screen -t bash0 screen -t bash1 screen -t bash2 ...
0
votes
0answers
71 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
4
votes
1answer
1k views

“screen is terminating” for non-root

When I try to run screen as a non-root user I get: screen [screen is terminating] immediately, though it works fine for root ls -alh /usr/bin/screen -rwxr-sr-x 1 root screen 465K Jun 9 20:30 ...
0
votes
0answers
76 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
0
votes
0answers
45 views

Why using 'screen -r' on remote host changed my terminal background color?

I have a custom vim color scheme on the remote host. Today I found after I using ssh to connect to the remote host and resume my screen process with 'screen -r', everything I wrote in the vim editer ...