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
949 views

Why do I appear 3 times “logged in” in macosx? (zsh and screen)

I'm using the following options in order to launch a 'screen' session when I launch Terminal.app to my OSX Mountain Lion: **~/.zshrc relevant option** if [[ $STY = '' ]] then screen -UxR; fi # ...
13
votes
3answers
14k views

How to execute a command in screen and detach?

How can I get screen to execute a command and then detach (That is, automatically in a single script without further input beyond initially starting the script)? e.g. I run myscript.sh and it ...
0
votes
1answer
992 views

How to prevent Shell auto-logout from terminating my screen session?

c shell and echo $autologout shows 60 But I can not unset this variable since it`s read-only, error message: set: $autologout is read-only. Everytime when the shell is auto logged out, my screen ...
5
votes
4answers
2k views

Keep processes alive after SSH logout

Im trying to measure bandwidth, packet loss, latency and jitter between two computers on a wireless 802.11s mesh connection. Im trying to make a (my first) bash script that can do the following: ...
0
votes
2answers
3k views

PuTTY + Xming + GNU screen: can it be done?

When I connect to a remote host (running darwin) with PuTTY, and having Xming running alongside, I can run, e.g., xlogo on the remote host, and I see the appropriate xlogo display clientside. But ...
2
votes
1answer
1k views

Scrolling in Vim through Screen (and PuTTY) sometimes inserts random characters

I'm having a strange problem with Vim, screen and putty. I am connecting to Screen through Putty, which, in general, works fine. I have had some issues with getting scrolling to work in Vim, however. ...
1
vote
1answer
143 views

change colours when running screen

I use gnome-terminal in Centos 5. I have my terminal settings customized to use the colours I like. However when I run screen (or tmux) the colours for my terminal input lines are always inverted. ...
1
vote
1answer
1k views

Switch GNU Screen windows with F-keys on PuTTy

I'm trying to use the f-keys to switch windows on GNU Screen/PuTTy, but I can't get it to work. This is my current .screenrc: bindkey -k k1 select 1 bindkey -k k2 select 2 bindkey -k k3 select 3 ...
2
votes
1answer
900 views

How do I reattach to a screen session when the socket is there, but screen won't use it?

I've seen this question and this question, but neither of them apply to me. I have the socket file in /var/run/screen and I own it - but screen -list doesn't recognize it and allow me to connect. ...
2
votes
2answers
147 views

Cron Job that restarts crashed game

So I'm hosting a game that is very tempermental and can crash a lot on Linux, I made this cronjob to restart the screen and game should it fail: #!/bin/bash for t in {1..12} do if [ -z "$(ps -C ...
0
votes
3answers
595 views

Linux: Terminate screen once the process within ends

Right now I'm running a process within GNU screen. Screen is started with the command screen -dmS screenname and the attached with screen -r screenname. A process is started in the screen session, and ...
2
votes
3answers
218 views

better options for screen?

OK. So I love screen. It has saved my bacon a few times when machines crash or get disconnected from the network. However, there are enough reasons keep keep me from using screen for everything, ...
1
vote
2answers
148 views

Start a few programs in a split terminal

I want to start a few programs with a single launch script and monitor their outputs to the console. The easiest way would be to launch in background an xterm for each program, but that's not very ...
1
vote
1answer
277 views

Does Linux screen slow down a process running remotely?

I am running a process that is uploading a large file to Amazon S3 in a Linux screen (byobu). The programs outputs progress of the upload as it runs (s3cmd). Since the process is running remotely, and ...
0
votes
1answer
708 views

Run a shell script in an existing terminal session

I'm writing a script to deploy a project to multiple servers (9 and counting). With compression, copying, and remote connections, the script is rapidly becoming fairly slow. So now I'm investigating ...
3
votes
2answers
1k views

Can I re-attach SSH key forwarding through a disconnected Screen session? [duplicate]

Possible Duplicate: ssh-agent key timeout with screen or tmux on bastion host I have a laptop on which I have pageant (the PuTTy SSH key agent) running. If I ssh to a system and launch ...
3
votes
1answer
842 views

ssh-agent key timeout with screen or tmux on bastion host

Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
1
vote
1answer
215 views

GNU Screen garbling bmon

bmon runs fine in a regular terminal, however, when run from inside screen the output is garbled and unusable. This problem doesn't affect all curses applications - top and htop run fine. bwm-ng runs ...
4
votes
1answer
2k views

How to get a gnu screen session to auto start with a specific command?

I need a certain program to run inside a gnu screen session, automatically when an ubuntu machine boots. How can I set it up so that later on I can just screen -r and interact with the program?
2
votes
1answer
114 views

Screen - switch tabs in subscreen

I use this in my .screenrc: bindkey ^[q prev bindkey ^[w next to switch between windows with alt+w/q If I open screen in screen, I can switch like: ctrl+a+a + number, but I would like to id for ...
0
votes
1answer
606 views

How can I create session logs of individual SSH sessions?

Here is what I am looking for: A way to log individual SSH sessions on SunOS. I would like to have the files kept separate based upon the hostname of the device I am SSHing into. I am only using ...
0
votes
1answer
145 views

gnu screen losing DISPLAY connection

I ssh tunnel into a remote desktop running Ubuntu via a terminal - and use gnu screen to do my work there. I have enabled X11 forwarding in my ssh config for the use of X11 applications launched from ...
15
votes
1answer
3k views

How to switch between two latest windows in tmux?

screen has a Ctrl-a,Ctrl-a to switch between two latest windows? How to do it in tmux?
2
votes
2answers
202 views

GNU Screen prepending dollar signs to window titles

I recently copied my .screenrc from one computer (Mac OSX 10.4) to another computer (Fedora 16) Now, on the Fedora computer, there is a $ prepended to all the window titles. Here is my hardstatus ...
2
votes
3answers
2k views

Run a GUI in screen or tmux (or alternative)

I have an application that's gui only that constantly needs to run. The problem is that I can't install a full desktop just for this application (my OS is debian and ubuntu cli). So I was wondering ...
2
votes
3answers
1k views

ALT+arrow moving between words in ZSH and iTerm 2

I logged in on one of hosting provider servers and noticed ALT + left and ALT + right moved between words in a shell prompt in a screen. What kind of key bindings I need to configure and where to get ...
1
vote
4answers
3k views

Get PID of process started in screen by su

i have a simple script that starts quassel-core in a screen session as different user! The script is: #!/bin/sh su ircc -c 'screen -dmS quassel /home/ircc/quassel/quassel-core' I want to start and ...
0
votes
2answers
588 views

tmux chain keyboard shortcuts, or equivalent for screen's `bind -c` + `command -c`

One nice feature of screen is its ability to assign keyboard shortcuts to groups called "classes". With bind -c, you could assign that shortcuts to a particular class, and binding command -c ...
31
votes
4answers
20k views

Byobu versus gnu screen versus tmux [on hold]

So far I have used konsole to manage multiple shell sessions but it seems that byobu, gnu screen, and tmux offer a better support for multiple shells. I have never used neither of them before. One of ...
4
votes
2answers
3k views

Remap Ctrl-A in GNU Screen

I have been using GNU screen for a couple of days and the CTRL-A navigation is beginning to wear on me. How can I remap this key combo and what are some common replacements for these keys? For ...
1
vote
1answer
367 views

byobu + screen colors headache

I have byobu installed on FreeBSD, with the users, uptime, load average, cpu count, cpu freq, mem available, mem used, date, and time notification modules enabled, in that order. No matter what I do, ...
1
vote
1answer
103 views

Preserving a job running outside screen in an ssh session

Let's say I've ssh'd into my box and decided to run a long job, but have forgotten to run that job inside screen. Is there anything I can do to stop the job from terminating when the ssh session ...
2
votes
1answer
596 views

Linux gnu screen - run commands immediately when screen starts?

In my .screenrc file, I have this line to open one screen window: screen -t "normal" And this line to open another window and run top: screen -t "top" top Those work just fine so I wanted to ...
3
votes
1answer
253 views

Is there a tmux version of screen's zombie mode?

screen has a feature called Zombie Mode, which makes it so that when the process of a screen (window or pane, in tmux terminology) dies, the window doesn't close - it just stays there until restarted, ...
2
votes
1answer
117 views

Keeping more history in GNU screen

When scrolling up through the history of screen session with ctrl+a ESC (the output in terminal), it only goes back a small number of lines. How do I configure screen to keep (much) longer history? ...
8
votes
2answers
278 views

gnu screen - Copying text between windows

Is it possible to paste text copied in a paste buffer to a different window with some keybinding, without having to leave the current window? I.e., instead of going to the window and doing a Ctr-a + ...
2
votes
1answer
1k views

Use Screen commands (C-A C-C, etc.) in byobu-tmux

I was having some troubles with byobu lately while using the screen back-end, so I switched to using the tmux back-end, which works like a charm. The problem is now that my keyboard has tiny F1­-F12 ...
2
votes
0answers
202 views

monitoring changes in windows of screen while screen is detached

It is possible to monitor windows in screen (I mean the terminal multiplexer called screen) with Ctrl-a M. However, I am only aware of the notification when I am looking at any window. What I want, ...
2
votes
1answer
282 views

Set Terminal.app proxy icon with xterm and screen

For quite a while, I've been using the supplied answers for Resume Zsh-Terminal (OS X Lion) to set the proxy icon for Terminal.app while running under zsh, and so far, it's been working quite well. ...
0
votes
1answer
521 views

Remap shift-tab to tab in bash/screen/putty in Linux?

Well I use vi-mode in bash via the set -o vi command. What's annoying is when I'm typing words in capital then try to complete using tab but don't release the shift-key fast enough, it brings me out ...
1
vote
1answer
1k views

Configure GNU Screen's colors?

GNU Screen gives my bash prompt nice colors, though the dark blue is hard to read on a black background. I can change the ls colors using /etc/DIR_COLORS but the bash prompt in screen doesn't get ...
3
votes
1answer
1k views

How to make IRSSI running under screen in a remote system to beep on my local pc for new messages?

I have an irssi running forever under a "screen" in a remote linux server system. I have fedora 16 in my laptop and ssh into the server and resume my irssi screen when I come to work. But I miss a ...
2
votes
1answer
770 views

Running into errors reattaching to a GNU screen session that tunnels X over SHH

After tunneling X over an SSH connection using screen on the remote, how can I reattach the screen session from another machine and tunnel X to that other machine? I either get "cannot open display" ...
1
vote
2answers
2k views

Load RVM environment in Screen and ZSH

This topic has been driving me nuts for a while now, and I'd like to be able to figure out what's going wrong. I use zsh with screen in my terminal, and have been for a while. However, for whatever ...
1
vote
2answers
1k views

Split vertical for GNU screen in cygwin

In cygwin using GNU screen there isn't the vertical split (vsplit). How can i add the vsplit
2
votes
1answer
437 views

How to get byobu to run screen instead of tmux?

With the recently added tmux support, byobu has started running tmux instead of screen. I did not change any settings. It just started using tmux. I would rather use screen. How can I change this?
2
votes
1answer
487 views

gnu screen: find which screen window has a given running process or variable?

I would like to find out which of my ~50 gnu screen windows has a process running with a specific variable defined in it. For example, about a week ago, I did this: id=ABC123456; ~/run_long_process ...
5
votes
2answers
7k views

How can I start multiple screen sessions automatically?

I'm trying to build a command that launches screen, creates four sessions with different names, and run four different commands. I know how to do this manually: 1. screen 2. ./command1 args 3. ...
0
votes
1answer
925 views

Starting program on boot with screen

Here is my script in init.d (Debian Linux) #! /bin/sh # /etc/init.d/blah # # Some things that run always touch /var/lock/McMyAdmin # Carry out specific functions when asked to by the system case ...
1
vote
1answer
825 views

installing git version of gnu screen on a rh6 linux with no root permissions

How I would go about installing git version of gnu screen on a centos with no root permissions? I tried this: mkdir ~/work cd ~/work git clone git://git.savannah.gnu.org/screen.git cd screen/src ...