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
17 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
23 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
34 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
24 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
39 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
15 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
98 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
31 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
23 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
20 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
27 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
66 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
63 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
105 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
61 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 ...
1
vote
2answers
353 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
92 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
42 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
28 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
65 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
54 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
71 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
143 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
127 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
40 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
105 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
36 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
30 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
53 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
812 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
69 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
41 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 ...
1
vote
0answers
37 views

Why when I run a program in a detached screen section it became very slow?

I am not so into Linux and I have the following situation related a strange behavior of the screen command. The situation is the following one: one a RaspBerry Pi I have installed Raspbian (that is a ...
2
votes
2answers
190 views

java app running in screen starts a process and this child is NOT in screen

I'm running a spigot server in screen, it is a java app. When it crashes and goes down gracefully it calls a restart script as a last action. This script simply contains a java -jar spigot.jar. The ...
0
votes
1answer
21 views

'screen -R' is slow when creating a new screen

When starting a new screen session with screen -R, some text at the bottom of the screen informs me it is creating a new screen. It takes about 5 seconds before bash starts seemingly because of this. ...
0
votes
1answer
205 views

How to set the GNU screen log file name non-interactively

I'm trying to parse the output of a screen session from a script. The man page of screen says I can use the command logfile, but gives no indication of the syntax to use when I launch screen ...
2
votes
1answer
65 views

Detaching from a GNU Screen suddenly clears the terminal

I feel so stupid for asking this, but here goes: I updated my Ubuntu (Server) install today from 13.10 to 14.04. Before the upgrade detaching from screen did not clear the terminal and now it does. ...
0
votes
2answers
31 views

Moving windows in GNU screen

I use GNU screen daily and I wonder is it possible to move windows in the window-list. Say I have Num Name Flags 0 emacs ...
0
votes
1answer
148 views

How to send message both to netcat and other script?

I'm trying to make some client-server interface. Think of it as one-on-one chat. What I want to achieve are two horizontal views. Bottom for my (server) input, top for client output and my input. ...
1
vote
3answers
92 views

How to press Ctrl+a+A

I was reading an answer about placing a tabs bar at the bottom of GNU Screen, and it said to press Ctrl+a+A. Clearly I cannot press A again while still pressing a, and why are the two capitalized ...
0
votes
1answer
20 views

How to append to screen buffer file?

If I have multiple log files open in several screens and I want to copy all useful traces to a single file, I initially copy them to the screen scrollback buffer file. Doing ">" after selecting text ...
2
votes
0answers
333 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
0
votes
0answers
36 views

Connecting to ssh and using screen not working properly

I used once ssh -t <login@server> screen -R to connect to a server and everything worked fine. I used the terminal in the server to execute an script and then detach the screen. I came back ...
1
vote
1answer
45 views

Auto Complete to Windows input queue from text on printed screen

I have a bin which output hostnames to stdout in following format (Usually, it is ~20 lines): ldn0000000002;ldn0000000040;ldn00000000055;ldn0000000117;nyk0000000001;nyk0000000002;tky0000000001 Then ...
0
votes
0answers
197 views

GNU screen mirroring (-x) with different size monitors/resolution

I'm using "screen -x" to mirror screens across two systems at the same time, but I seem to have an issue with resolutions. On most of my screen windows, the top portion (or bottom) is cut off when I ...
0
votes
1answer
38 views

GNU screen. nothing happens when trying to resume session

I have a D-LINK nas (Linux 3.2.34 armv7l), where I have screen, compiled from sources. Everything was fine until something happened and now I can't resume the session. The symptoms are as follows ...
0
votes
0answers
24 views

How can I start multiple screen windows side-by-side inside one screen instance automatically?

I want to have a desktop/keyboard shortcut that opens a terminal running a screen session that displays top in the upper 60% and iostat in the lower 40%, and possibly pidstat, too. Is that possible? ...
1
vote
0answers
75 views

Creating multiple screens in a for loop to run parellel programs and sending commands to each

Before flagging this questions as redundant, i have read and tried every answer to similar questions with no success I have this loop where it traverses a directory structure, and runs a program ...
1
vote
1answer
70 views

gnu/screen: session-name in status-line

How do I add the GNU/Screen's session-name (as set by C-a :sessionname foo) to its' status line? The manual says that S is the escape code for session name but when I try to add %S to my caption I ...