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
1answer
1k views

GNU Screen: Setting the default baud rate

Does anyone know how to set the default baud rate for GNU Screen? Currently I explicitly specify the baud rate when I open screen like so: $ screen /dev/ttyUSB0 115200 115200 is a magic number, and ...
1
vote
0answers
136 views

How to use cursor keys with a modifier to switch buffers in GNU screen

I want to use cursor keys with a modifier like Ctrl to switch between screen buffers (e.g. C-a [arrow] or C-a C-[arrow]). So far I have tried settings like the ones below with no success. bind ...
0
votes
1answer
196 views

Vim “* and ”+ in screen

I recently started using screen, and I am enjoying it quite a bit. The problem is, when I run vim from within screen, I can no longer seem to access the + register. It used to be, I could say "+dd ...
1
vote
0answers
409 views

LINUX [UBUNTU]: screenlog.0 - modify path

I have a screen command like this: screen -A -h 1500 -m -dmS SKY-001 /home/SKY-users/SKY-001/./ ... I'd like to start the output logging and save the screenlog.0 file to /home/SKY-users/SKY-001. ...
4
votes
1answer
211 views

linux 'screen' command - lowers process priority if detached?

If I run a program within a screen session, and then detach the screen - does the program have lower scheduling priority?
1
vote
1answer
201 views

How to divide screen within a bash script

I have made a short bash script that gets xml data using curl and sends some (it's a chat, in fact) regarding its given arguments. So I can either run the following : watch --no-title myscript and ...
3
votes
1answer
594 views

Write special chars in hardstatus of GNU Screen

I want write the next specials chars to hardstatus of GNU Screen: "↑" (up arrow) and "↓" (down arrow), but it shows strange chars. How can I do this? More info: This worked to me before but I have ...
2
votes
1answer
492 views

gnu-screen: Automatically run script when attach/detach session

I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session. Is there any way to configure screen to do that?
1
vote
1answer
192 views

How to disable input translation for some keys in GNU Screen?

I have Ctrl-Left and Ctrl-Right bound for vim, and would like to be able to use these shortcuts when vim runs inside screen. However, because of Screen's input translation my key presses are mangled ...
2
votes
2answers
13k views

how to reset /dev/ttyS0

I'm trying to connect to a Khepera robot using serial interface (running Scientific Linux 6.1) I used the command screen /dev/ttyS0 to communicate which worked OK, but then I wanted to close it and ...
4
votes
2answers
1k views

How to go past window 9 in GNU Screen without going to Window list?

I use GNU Screen tool to keep my sessions alive on the system. To switch between windows I use Ctrl+a N where N is the number of the window. I want to use similar keystroke to access windows with ...
8
votes
2answers
2k views

Can I name GNU screen sessions?

I use multiple sessions for different things. One for work, one for school work and one each project I'm working on. It gets really hard to keep track of the sessions when screen -ls returns ...
2
votes
2answers
204 views

Screen does not appear in list when using sudo

While under root user (printed by whoami), execution of sh -c "screen -d -m -S testscreen sh -c \"echo asd; echo qwe\"" creates a screen with two lines output, which can be reattached via screen -r ...
0
votes
1answer
239 views

Launch process in new window, whether GNU screen session exists or not

I'm having a bit of trouble with GNU's screen. What I want to do is this (from cron): If a screen session named cron exists, add a new window to the session and launch a process in it (but do not ...
7
votes
6answers
9k views

How switch between screen inside screen?

I have to work inside two environment. One Windows (local) and one Linux (remote). I've installed the screen linux utility in both. I'm able to open a screen on my windows, then in one tab, I opened a ...
3
votes
1answer
375 views

gnu screen - how to highlight searched text

While doing a reverse text search via " C-a[? search_string", I have to keep pressing 'n' to figure out occurrences of 'search_string'. Is there a configuration in GNU screen that can hihglight ...
0
votes
1answer
1k views

GNU screen, vim, and urxvt with 256 colours. gnu

I have defined urxvt*color0: #000000 urxvt*color8: #777777 in my $HOME/.Xdefault. Using vim (console not gvim), this gives me a light grey for strings in bash scripts when I use urxvt. ...
4
votes
1answer
2k views

How do I change the order of screens in byobu?

I'd like to bind Shift + ← and Shift + → to move my current screen left/right in the ordering of screens. How can this be done? These are the versions I'm using: $ byobu -v byobu version 2.68 ...
2
votes
2answers
2k views

How can I make sure my system uses the ~/.screenrc file?

My friend provided me with a rather detailed .screenrc which I put into my ~/ directory. I am pretty confident when I run screen it isn't utilizing the edits in the file. How could I confirm whether ...
0
votes
1answer
104 views

Reattaching GNU Screen session name with a common prefix

I have 2 screens with session names test1 and test19. When I try to reattach to test1 by typing screen -r test1 Gnu Screen cannot tell the difference and pops up 27082.test19 (08/10/2011 ...
1
vote
3answers
327 views

screen -x ignore utf8

I use screen and I use utf8 with this in my ~/.screenrc # utf-8 encoding utf8 utf8 defencoding utf8 ok. But, when I reopen screen with screen -x screen don't show the utf8 characters EDIT I ...
3
votes
1answer
305 views

Launch program automatically with screen/byobu using an alias

My screen starup commands look like: screen alias1 screen alias2 alias1 is an alias pointing to command1 alias2 is an alias pointing to command2. alias1 and command1 share the same name. alias2 and ...
5
votes
2answers
442 views

A “view-only” mode in `screen`?

One of my favorite modes for screen is using the -x option, wherein multiple users can connect-to the same session (great for team troubleshooting and training purposes). However, it would be really ...
1
vote
2answers
30 views

Goes to the start of the command in screen

After running a command that spits out a lot of output in screen. I drop to Copy mode and try to find where the command start. This becomes very very challenging when there are lots of lots of similar ...
1
vote
1answer
375 views

How can I use Control+` (grave accent) as my escape character for screen?

I've been trying to think of an escape character to use for screen that isn't already used by any of the programs I use, and I've settled on Ctrl+`. The default Ctrl+a is unacceptable for me because ...
3
votes
2answers
3k views

Run 'screen -RD' automatically after connecting from PuTTY

I would like to have PuTTY automatically run screen -RD when I log in, however I would like if possible, for this to be either configured as part of PuTTY, or for the server to identify when a PuTTY ...
6
votes
3answers
2k views

Mac Gnu-Screen doesn't load default .bash_profile

I have a bunch of custom settings in my bash_profile. when I use gnu-screen, I realized that my screens do not execute source /Users/disappearedng/.bash_profile. I try to put source ...
2
votes
1answer
322 views

GNU Screen: Visual indication of copy mode

When I enable copy mode in a window, I see "Copy mode ..." in the bottom line of the terminal. I configure screen to show the list of windows on the bottom. Now, when I switch to another window and ...
4
votes
4answers
11k views

How can I launch multiple screen sessions from a single bash script?

I've written a script (that doesn't work) that looks something like this: #!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done For some ...
3
votes
4answers
2k views

Running emacs inside screen

I have a screenrc file but I am finding some conflicts when I run emacs inside screen. For e.g, moving across buffers in emacs, Ctrl-right arrow/left arrow, instead of moving back and forth sends ...
19
votes
4answers
19k views

How can I view more of my history in Screen on Linux?

I was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in ...
2
votes
2answers
952 views

I would like to write a shell script/rc file that automates GNU Screen splits and starts programs within them

I would like to automate a scenario when I am working on a rails project, and I think screen is the perfect way to accomplish this without having to drag and drop multiple windows after every startup ...
1
vote
1answer
244 views

Running emacs in GNU Screen overrides .emacs settings for [home] key binding in FreeBSD 8.2

If I use the following .emacs file, I am able to go to the beginning/end of the current line using the home/end keys as I would expect. (keyboard-translate ?\C-h ?\C-?) (add-to-list 'load-path ...
1
vote
1answer
832 views

Screen and SSH Tunnel - How can screen session possibly die?

When I start my xsession I setup my SSH tunnel to my VPS. Here is the script the runs on login: matt@HY731AA:~$ more dotfiles/startssh.sh #!/bin/sh ssh-add ~/.ssh/id_rsa screen -dmS ssh /bin/bash ...
3
votes
1answer
1k views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...
2
votes
3answers
172 views

putting screen away?

I've just installed screen, what a great tool! But i'm having some problems. CTRL-A K kills a screen CTRL-D detatches from a screen but what are the difference? both results in loosing the screen? ...
1
vote
2answers
800 views

Pipe screen buffer to another command?

I can't seem to find anything on this so, is there a way to pipe everything from a screen window into another command. I have a server running in screen (not the best idea, but the only way for the ...
3
votes
3answers
638 views

In 'screen' (linux utility) windows, where is the .bash_history of individual windows?

I am using the linux-utility 'screen' (I mean the terminal multiplexer). In each "window" of screen, I am running bash. But these bashes do not seem to have any command history. For example, if I ...
1
vote
2answers
1k views

Debian: Kill a Screen session through the web

I have php code that is as follows (kill.php): <?php echo exec("/home/duke/aa/scripts/test.sh"); ?> test.sh looks like this: screen -S server -X quit If I run the php code in the terminal ...
9
votes
4answers
2k views

X equivalent of 'screen' utility

Under unix/linux, there is this extremely useful program screen: it's for bash, text-only, and I can detach a session, log out (the session is still running though), log in later (even from a ...
7
votes
2answers
3k views

GNU Screen: Can't stuff commands unless the screen is attached?

I have the following script screen -d -m -S $1 #start screen minimized screen -S $1 -X stuff "$beast " #stuff commands unless I attach the screen ...
1
vote
2answers
1k views

Using screenrc, how can I make `C-a c` open a new window at the current window's working directory?

Using screenrc, how can I make C-a c open a new window at the current window's working directory? By default it appears to open the new window at the working directory at the time the original screen ...
1
vote
0answers
187 views

$HOME is forgotten only when a remote SSHed “screen” session is detached

Whenever I detach my remote "screen" session and ctrl a-c a new window, it opens the new window with "/" as the PWD. Another extremely annoying problem is that whenever the "screen" session is ...
1
vote
2answers
1k views

Use screen to execute command from commandline

Is there a way wherein we can start a screen, execute a command and detach it without actually entering into the screen? something like screen -[some option] [command tobe executed] I need this ...
0
votes
1answer
341 views

Define a new “Ctrl-a <key>” shortcut in GNU screen?

I want to be able to hit Ctrl+a (or whatever my command sequence is) followed by a lowercase k rather than the uppercase one that screen defaults to. I've played around with the bindkey directive a ...
4
votes
1answer
250 views

Disconnect process from Linux console

I have a long-running process that was started in bash terminal on Debian. Unfortunately it wasn't started inside screen. Is there a way to disconnect this process from current console and connect to ...
6
votes
4answers
2k views

How to run a second command in same screen session

I'm starting the first command in screen like this: screen -d -m -S testen -t lalala watch df -h Now I have a screen session running in background and I can reconnect at a later time. But how can I ...
0
votes
1answer
426 views

convert screen hardstatus to tmux

I'm a longtime screen user, but the move to tmux is growing inevitable. I have a fairly large .screenrc that I am working toward porting to tmux (I'd like the bulk of my existing workflow to just ...
5
votes
1answer
2k views

How can I make window list in GNU Screen appear always ( C-a, C-w)

How can I make window list in GNU Screen appear always ( C-a, C-w) ( permanently )
1
vote
1answer
3k views

Running nicklist with irssi using screen inside tmux?

I try to run the nicklist addon with irssi using screen inside tmux but strangely :) it doesn't work and I get the input on top of the screen. Is it possible to run nicklist when you are on tmux?