Tagged Questions

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
0answers
13 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
15 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
26 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
39 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
54 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
73 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
48 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
124 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
63 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
33 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
24 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
44 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
38 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
64 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
1answer
88 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
82 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
27 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 ...
1
vote
1answer
70 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
31 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
29 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
41 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, ...
3
votes
0answers
505 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
57 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
37 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
33 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
146 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
20 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
153 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 ...
1
vote
1answer
59 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
27 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
126 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
89 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 ...
-1
votes
1answer
15 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. So I initially copy them to screen scrollback buffer file. Doing ">" after selecting text ...
1
vote
0answers
287 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
35 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
42 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
183 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
37 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
61 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
65 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 ...
0
votes
1answer
254 views

Archlinux - Autostart `screen` after boot

I'm building some small internet radio player using Archlinux. All I need right now is to autostart (without login!) script or just command: su -c 'screen "vlc (a lot of parameters)"' vlc_user By ...
1
vote
1answer
43 views

See entire output of process in 'screen'

I am running a script in screen, which takes several days to run. Occasionally, I log back in to check the output, and I'd like to see the output during the times I did not have the screen attached. ...
1
vote
2answers
132 views

Fish shell syntax highlighting looks weird in byobu-screen

When I am in plain fish shell, a command is highlighted like so: but when I am in byobu-screen and type the same thing, I get: When I do a fish_config and look at my color palette, nothing is ...
0
votes
1answer
55 views

How to bind exit to a key?

When I am using screen, every time I use kill, it prompts a confirmation and ask me whether to really kill (which I really do after pressing so many keys). To get around this I type exit instead. But ...
0
votes
1answer
82 views

Remove vertical split bar of a termincal multiplexer, vacating the space instead of hiding it

For the last decade I usually work in a full-screen mode terminal emulator (often xterm), and often with vertical split. The recent GNU Screen offers vertical split with ctrl-a |. 1280×720 offers 160 ...
1
vote
1answer
66 views

why does screen cause problems with sftp?

I love to use screen, but I haven't really had much experience using it over ssh. At work I recently was issued a shell account and I decided to try to configure it so that screen gets run when I ...
2
votes
1answer
23 views

GNU Screen: deleted directory screen was started in

I started screen in a directory I since deleted and every time I open a new window I get the following error: shell-init: error retrieving current directory: getcwd: cannot access parent ...
1
vote
0answers
32 views

GNU screen lost encoding settings after detached and reattached

I set the defencoding and encoding in the .screenrc, defencoding GBK encoding GBK GBK After I detached and reattached the session, the encoding settings don't work. screen -r -d -S session How ...
1
vote
1answer
36 views

Launching GUI apps from GNU screen on OS X

On OS X 10.9.1, when I try to launch GUI Apps on OS X from within a GNU screen terminal, the app simply hangs without showing a window. Launching the same app from a regular terminal outside screen ...