Questions tagged [gnu-screen]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
267 views

How do I create a unix script to create multiple GNU screens?

In .screenrc, I can have the lines: screen -t title1 command1 screen -t title2 command2 I would like to create a batch file to add a few screens at once, what is the best way of going about that? ...
polyglot's user avatar
  • 161
4 votes
1 answer
2k views

Prevent an already running background process from being stopped after closing SSH client

I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish. I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup. ...
rubo77's user avatar
  • 4,900
2 votes
1 answer
166 views

"Redirect" shell to gnu screen

I'm just wondering. Very often I want to quit shell connection. For example when I ssh to remote linux and after while want to turn off computer. If there is process running I can't turn my computer ...
kaszynek's user avatar
  • 241
2 votes
1 answer
1k views

A way to auto cycle (close) through all screen sessions

I frequently use screen when I log into the interactive nodes to a supercomputer that I have access to -- and I often run things and move on. There are about 20 separate nodes that I can log into; and ...
JBWhitmore's user avatar
2 votes
1 answer
552 views

Gnu screen: get around 100-character limit for commands - can't change hardstatus

I have a hardstatus line set in my .screenrc file: hardstatus alwayslastline '%{= kg}[ %{G}%H %{g}][%= %{= kB}%?%-Lw%?%{+b r}(%{G}%n*%f %t%?(%u)%?%{r})%{-b B}%?%+Lw%?%?%= %{g}%]' # This is 127 ...
Matthew's user avatar
  • 1,308
7 votes
1 answer
1k views

Native xterm mouse scrolling in tmux

I have decided to try tmux as GNU screen replacement and wonder if there is a way to scroll with mouse as in xterm? It is possible to enable native xterm scrolling with Shift + PageUp in tmux by set ...
sknaumov's user avatar
  • 171
24 votes
6 answers
50k views

Quickly switching between virtual sessions (screen?)

I'd like to have few virtual session in one putty window and change between them quickly. What's the best way to do that? screen? I know I can detach with ctrl+ad and then reattach to a different ...
zzz's user avatar
  • 339
5 votes
3 answers
2k views

Can I remove the ctrl-z key binding in my shell?

The background for this question: I currently have to do a lot of my work in terminal over ssh, and I use screen quite a bit. Because I found the ctrl-a key binding for screen commands so annoying ...
Nagel's user avatar
  • 557
2 votes
1 answer
1k views

Putty and screen under CentOS 6

My current work enviroment is Windows workstation with Putty. And almost always i run "screen" session. When i started using CentOS 6 i noticed strange behavior with screen. When I run screen in Putty ...
RJS's user avatar
  • 123
4 votes
1 answer
2k views

PS1 window title under PuTTY with GNU screen

I'm currently setting my PS1 title with by concatinating three variables in my .bashrc in such a way: export TERMSERVER=`who am i | awk '{print $NF}' | tr -d ')''('` if [ -n "$TERMSERVER" ] ; then ...
BlakBat's user avatar
  • 1,258
2 votes
0 answers
487 views

Terminal with session management and scrollback OS X

I use GNU Screen all the time in OS X, primarily running on the server side of my SSH connections in order to maintain persistence, while multitasking. The beauty is that if I get disconnected, all ...
acjay's user avatar
  • 363
2 votes
1 answer
4k views

Send command to a detached screen with enter?

I have a screen running a server. That screen is run with: screen -m -d -S server (cmd to start server) Then I want to send a command to the server by doing this: screen -S minecraft -X stuff (cmd) ...
user avatar
4 votes
2 answers
77 views

Is it possible to show the current file I have open in vim in my screen tabs?

Was wondering if it'd be possible to somehow show the current file I'm editing in the tabs of my screen Because it'd be way easier to know what I'm switching between.
bob_cobb's user avatar
  • 249
11 votes
4 answers
5k views

gnu screen - get list of window titles

How can I obtain information (title, created time, visible content) about windows in a screen session? I need to do this in a script, so I am not looking for key bindings or interactive commands. ...
sina's user avatar
  • 225
6 votes
1 answer
2k views

How can I make a window "read only" in GNU Screen?

I started a really long process and would like to check it occasionally how it goes, but want to avoid interrupt it by mistake. Is there a way to set only this window "read only" ?
kissgyorgy's user avatar
8 votes
3 answers
4k views

Copy-paste with GNU Screen with vertically-split windows on OS X

When using GNU Screen with OS X (presumably with Linux also) and use a vertical split screen, how do you copy-paste text on just one side of the full terminal? Is not being able to do this something ...
hatmatrix's user avatar
  • 874
3 votes
0 answers
373 views

putty(vt100+ mode) + screen + emacs = no num keypad?

Putty (VT100+) mode GNU screen emacs The keys on the numkeypad no longer work. Is there any easy way to fix this? (I'm not familiar with customizing emacs settings, and prefer not to mess with .emacs ...
dAN's user avatar
  • 31
33 votes
2 answers
14k views

Is there an easy way to save a byobu session such that I can reload it after a reboot?

I understand that there is a way of defining windows that are opened in a session by saving configuration files in $BYOBU_CONFIG_DIR. But is there a way (command or script) to save the current session ...
hargriffle's user avatar
2 votes
1 answer
2k views

using screen with start-stop-daemon, sysv

I'm trying to run a program with an ncurse interface as a daemon using screen. I want to use start-stop-daemon to manage the process, but I'm having trouble creating a SysV init script. Variables: ...
John David Ravenscroft's user avatar
0 votes
0 answers
616 views

Getting a setting, the chdir value, out of GNU Screen

I've been using screen's chdir command to set a new working directory for new screen windows, more on that later. What I need to do is find out what the setting was before I set it, so that I can set ...
dlamblin's user avatar
  • 10.7k
0 votes
1 answer
740 views

How do I send SIGKILL on cygwin in GNU Screen?

I have recently started using GNU screen on cygwin, but the functionality to terminate a foreground process with CTRL-C does not seem to work when there is an active screen session. Is there a ...
Rich Ashworth's user avatar
50 votes
4 answers
42k views

Gnu screen: kill a frozen tab

How to go about closing a stalled screen tab (the machine is no longer reachable) ?
Philippe Blayo's user avatar
1 vote
1 answer
2k 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 # ...
atmosx's user avatar
  • 174
186 votes
8 answers
382k 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 ...
darkfeline's user avatar
  • 2,142
1 vote
1 answer
5k 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 ...
leonbnu's user avatar
  • 191
5 votes
4 answers
5k 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: ...
Thomas's user avatar
  • 51
1 vote
2 answers
5k 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 ...
kjo's user avatar
  • 1,241
2 votes
1 answer
3k 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. ...
Adam's user avatar
  • 21
1 vote
1 answer
393 views

Change GNOME terminal colours when running screen

I'm using GNOME Terminal on CentOS 5. I have the 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 ...
lonestar21's user avatar
1 vote
1 answer
3k 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 (......
lzm's user avatar
  • 215
6 votes
1 answer
4k 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. ...
Tom Ritter's user avatar
  • 1,156
2 votes
2 answers
619 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 ...
Matt's user avatar
  • 21
0 votes
3 answers
5k 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 ...
hexacyanide's user avatar
2 votes
3 answers
294 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, ...
lonestar21's user avatar
1 vote
2 answers
325 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 ...
fortran's user avatar
  • 113
1 vote
1 answer
2k 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 ...
donatello's user avatar
  • 161
0 votes
1 answer
2k 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 ...
Mikkel's user avatar
  • 825
8 votes
2 answers
4k 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 screen, ...
David Mackintosh's user avatar
9 votes
2 answers
3k 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 forward....
Jericon's user avatar
  • 191
1 vote
1 answer
443 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 ...
tan-ce's user avatar
  • 11
3 votes
1 answer
3k 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?
GJ.'s user avatar
  • 9,843
2 votes
1 answer
215 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 ...
Blaskovic's user avatar
  • 125
2 votes
1 answer
3k 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 ...
Mark S.'s user avatar
  • 1,307
0 votes
1 answer
367 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 ...
user64752's user avatar
  • 103
88 votes
4 answers
46k views

How to switch between two latest windows in tmux?

GNU Screen has Ctrl-a,Ctrl-a to switch between the two latest windows. How to do it in tmux?
kev's user avatar
  • 12.7k
2 votes
2 answers
480 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 ...
CamelBlues's user avatar
4 votes
3 answers
13k 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 ...
Lucas Kauffman's user avatar
2 votes
5 answers
7k 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 ...
Josef's user avatar
  • 1,345
1 vote
3 answers
2k 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 <...
jw013's user avatar
  • 1,291
128 votes
4 answers
92k views

Byobu vs. GNU Screen vs. tmux — usefulness and transferability of skills [closed]

So far I have used Konsole to manage multiple shell sessions but I haven't tried Byobu, GNU Screen, and tmux, which offer better support for multiple shells. They all share one main feature, which is ...
Keitai's user avatar
  • 1,291

1
6 7
8
9 10
14