screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag [monitors].

learn more… | top users | synonyms (1)

2
votes
1answer
26 views

script that calls a third party script that calls screen - how to start screen detached?

I have a script 'myscript.sh', that calls a vendor script 'vendorscript.sh'. The vendor script runs screen in the foreground. I would like to run the vendor script with screen detached. If possible ...
2
votes
2answers
37 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...
1
vote
0answers
16 views

Linux Mint default physical screen before login

I currently have to do annoying things to log into Linux Mint 16 Petra. I have two screens: new, left, VGA old, right, DVI The mouse is trapped on the left screen and the login dialogue for mdm is ...
1
vote
1answer
25 views

how to debug/fix screen crashes on startup

(this is a question in reference to the OS X version of Gnu screen. I don't know if this makes any difference - and I guessed that Unix & Linux would have better screen-fu than Ask Different.) ...
1
vote
1answer
26 views

Combining local and remote terminal multiplexing

I use tmux regularly to easily handle multiple terminals on my local machine. Sometimes, I need to connect to a remote machine and start a script in one the terminals (i.e. a pane or window in tmux). ...
0
votes
1answer
24 views

GNU Screen: Creating new window with title specified

Is there a way of creating new window in GNU screen with title specified while creating the window itself. I know that I can create a new window and then set the title using ^A A but is there a way ...
3
votes
2answers
52 views

screenrc subshell for every window

.screenrc: shell -${SHELL} caption always "%n(%t) %= %{b}@%H[%l] : %{r}%c:%s" termcapinfo xterm ti@:te@ termcap xterm 'AF=\E[3%dm:AB=\E[4%dm' terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm' ...
3
votes
1answer
59 views

Init script leaves thousands of defunct processes

My problem is that I have an init script that is generating thousands of defunct bash processes. My goal is to have a program called "fr24feed" in its own screen session on boot. After looking at ...
0
votes
1answer
30 views

Attaching a screen to a name

Okay for me to load a screen I have to do screen -r server Is there a way I can set it up so that can just be shown by the command: screen -x name
0
votes
1answer
34 views

I hit Ctrl+d while in a screen session, how do I now send commands?

I was trying to Ctrlad, and failed miserably and input Ctrld instead, now the screen won't respond to my commands. They appear, and the app running in the screen (a minecraft server) is still ticking ...
4
votes
1answer
55 views

How to see screen information at the top of terminal?

I once used a server where using the screen command gave me a colorful header which told me the name of the screen, the total number of screens, the runtime, cpu utilization and maybe some hotkeys to ...
2
votes
1answer
52 views

How do I fix this strange behavior with ssh, gnome terminal and gnu screen where function keys F1 through F4 are not accepted?

Here is what I am trying to do: open Gnome terminal launches with my command prompt ssh into work via VPN launch screen create two screen windows try to use F3 and F4 as "prev" and "next" with no ...
1
vote
2answers
61 views

Screen: Current directory in caption bar (not as title)

How can I show the current directory of the currently active session in a screen status bar (not as title of the session!)? I have tried with various combinations n,m={0,1} of backtick 102 n m pwd ...
0
votes
0answers
26 views

get information about screen windows

I run two scripts simultaneously within screen. screen is started by a script. I am working on a method for automatic window selection depending on the state of the scripts. This works (screen -S ...
2
votes
2answers
55 views

vim colors not automatically loaded (probable Vundle conflict)

I've been trying to port my Windows .vimrc to Linux, to use on the command line (on gnome-terminal). Everything works fine, except for the colorscheme. It looks like it's loaded (:colorscheme returns ...
0
votes
2answers
72 views

GNU screen status bar - how to make it display shell session names?

Let's say I have several shell "tabs" (or screens? sessions?) named bash1, bash2, etc. open in GNU screen. I want the status bar (i.e., the caption line) to display the names as "bash1 | bash2 | ..", ...
0
votes
0answers
59 views

Screen create/resume session, run command an detatch

I am trying to make a startup script for my Minecraft severs but I can't figure out how to: If the session "Server1" exists, run a command in it, if it doesn't, create the session and then run the ...
3
votes
3answers
398 views

Starting screen without welcome screen

Running screen I see this: How can I start screen directly, without this welcome screen?
0
votes
1answer
43 views

Log output of GNU screen in real time?

I'm trying to get the output of a GNU Screen to a log file in real time. I've tried using tee, but that appears to not work with screen. The log function for screen will not work for this as it is not ...
1
vote
0answers
29 views

Why CentOS 6 adjusts console width when running screen?

I run a console window through my PuTTY session. That console windows has a column width of 140. When I start the screen session, the console shrinks to 80 columns. I do not see this behavior on ...
2
votes
1answer
69 views

Byobu - send command to byobu tmux session from commandline (or bash/sh)

I run a script which I would like to print the status to a byobu tmux session. So for example print backup finished \n. Is it possible to do this with the name of the byobu tmux window, which you can ...
2
votes
2answers
32 views

How to switch to a screen with two digit index in screen command?

Let's say we have opened more than 10 screens in the screen program. How to switch to a screen using Ctrl+A, n where n > 9?
2
votes
1answer
48 views

see all commands/logs of screen in linux

Let us say I run screen -R myscreen. Then, I run commands on myscreen that are bigger than my monitor size so I end up loosing the visibility of the first commands I run. Then, I do Ctrl+d to ...
2
votes
5answers
51 views

How can we revisit screen command?

Screen command is a command we use to ensure that the command is not interrupted. Well, internet connection is interrupted. So I want to go back. I typed screen and go to a new screen. What about if ...
1
vote
1answer
373 views

Make screen start as Daemon for a Minecraft server

I made a script that runs fine manually, but can't get it to run with the description in How to start a script file on boot?. I have run update-rc.d -f minecraft.start defaults This is what my ...
2
votes
1answer
105 views

Send command to detached screen and get the output

I've been searching to find a way to send a command to a detached screen session. So far, so good. This is what I've come up with: $ screen -S test -p 0 -X stuff 'command\n' This command works as ...
1
vote
2answers
78 views

Script to su -c into a screen is not working as intended

I'm working on a script that will allow me to load up a screen from a user via sudo and su -c. However, when I use it, it will just show the shell of the user: sudo su -c "script /dev/null; screen -r ...
1
vote
1answer
175 views

Linux - Sending a command to a screen through a shell script? [duplicate]

I'm trying to figure out how to make a script that will be able to send commands to a screen that will execute within whatever the screen is doing. Is this possible, and if so, how is it done? I've ...
0
votes
0answers
30 views

When connecting with GNU Screen (patched version) RPi reprompts for password in kind of loop

I'm sorry this is a repost of my question on raspberrypi.stackexchange.com, but I didn't get an answer there, so I thought I could post it here. If not, please suggest some other way to get help. I ...
2
votes
2answers
99 views

GNU Screen: you have neither usable sockets nor usable pipes

I am trying to build GNU screen on CentOS 6 Minimal and When I type the command ./configure it gives me this error you have neither usable sockets nor usable pipes -> no screen I tried to use ...
1
vote
1answer
45 views

Change terminal type for screen over a serial connection

I am connecting to an embedded Linux board using screen over a serial link and trying to change the terminal type, as the default vt100 is pretty restrictive in terms of colours and scrolling etc. ...
5
votes
1answer
71 views

Export content of screen daemon to file

I'd like to export the content of a detached screen under linux. I tried those command: screen -x 2>&1 > temp screen -x > temp 2>&1 screen -x > temp But it's not working, It ...
0
votes
2answers
102 views

Why do you need screen/tmux to keep a remote program running

When I ssh to a server and start a script that is supposed to run for several days, it stops executing some time after I log off. Why? I suppose the server runs 24/7. And what does screen/tmux do to ...
1
vote
2answers
41 views

Display content of all currently detached screen

I have a few detached screens running. Now I’d like to see their current state for each of them. Currenlty, I do $ screen -r # look at the cryptic numbers $ screen -r <paste number one> # look ...
3
votes
2answers
123 views

Kill disconnected SSH session running in `screen`

I'm always forgetting to logoff when ssh-ing somewhere. After I reopen my notebook, a screen window with this running ssh is unresponsive. I have to create another window, $ killall ssh, and only then ...
0
votes
1answer
106 views

Screen in bash script

I am using a bash script and I need to create a screen, execute a specific command with a memory limit and detach the screen. I have been trying something similar: #!/bin/bash for i in 1 2 3 4 5 6 7 ...
0
votes
0answers
44 views

Screen caption custom colors

I am having trouble customizing the color of my caption in screen. I can use the 8 standard colors supported (as well as their brighter versions), but I am unable to define a custom color. The docs ...
2
votes
1answer
95 views

Garbled text in tmux menus

I am trying to use the st terminal, but after starting tmux (or screen) in a remote ssh session, the text becomes all garbled. Exiting tmux/screen makes text normal again. Now, I have found that this ...
1
vote
1answer
40 views

gnu screen get user@host on hardline

I create screen session with ssh user1@host1, user2@host1, ..., user5@host1. On hardline I see only host1 five times. The same when I press Ctrl+A". How can I define a hardline to get ...
0
votes
0answers
28 views

Screen: How to send control commands using “screen -S” [closed]

screen -S works fine for sending shell commands. But how do I send screen control commands, like to split the window or source a .screenrc file?
5
votes
2answers
72 views

How to send command output to GNU Screen's copy mode buffer

Is there a way to send the output of a command to a GNU Screen's copy mode buffer. I'd like to type something like this: $ echo 'this is an example' | screen_send_to_copy_mode or, maybe C-a Some ...
0
votes
1answer
244 views

Automatically save bash command history in screen session [duplicate]

I connect to a screen session. After doing some stuff I detach it. Then in history | tail I only see screen -r and previous commands and not the commands run in screen session. Basically history shows ...
2
votes
2answers
66 views

breaking from a program running in an interactive session in a screen window

I am launching R (an interactive program) in a screen window in a remote session: ssh me@.. screen -S R_ProjectName R In the R session, I would like to break execution. Normally, this would be ...
0
votes
0answers
35 views

Why is Compass running on screen 1 printing its output onto screen 0?

I'm using 2 screen windows for this. screen window 0 is mostly used for git screen window 1 is used exclusively for running compass in watch mode. Now, whether I redirect all compass (run with the ...
4
votes
1answer
44 views

What is the scheme for textual representation of keystrokes in screen?

How can I derive the character sequence that represents a certain keystroke in screen? I mean, what bind takes as input. For instance, 's' represents the obvious keystroke on the 's' key. 'S' ...
1
vote
3answers
76 views

Whats a simple Window Manager to use for web development? [closed]

I'm looking for a really simple window manager that will allow me to run a browser, a terminal and not much else. I normally just use chrome along with gnome-terminal and a series of gnu screen ...
1
vote
0answers
25 views

GNU Screen Caption

I have this line in my .screenrc file: caption string " %{kw}%-w%{ky}%n-%t%{-}%+w" This is the caption output, where 0 is the active screen: 0-bash 1 bash 2 bash How do I customise %-w and %+w ...
4
votes
1answer
167 views

How to bind 'tab' and 'shift+tab' in gnu screen?

As the title says, how do I bind the keys 'tab' and 'shift+tab' in screen? My problem is that I don't know what to pass to the screen command "bind" to designate these keystrokes. BTW, I'm aware of ...
2
votes
2answers
90 views

How to go to next screen in screen

I have 10 screens running in detached mode. When I do screen -r pid I can see the output from one of them. The man page says ctrl-a + n will show me the next screen, but when I do it it says: No other ...
2
votes
1answer
49 views

How can I toggle mouse scrolling behavior while screen is already running?

Right now I have the following line in my ~/.screenrc so I can scroll back and see the output for a screen window: termcapinfo xterm ti@:te@ Now that I am editing in vim, I would like to use my ...