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)

5
votes
1answer
84 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
127 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
62 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
169 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 ...
1
vote
1answer
663 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
57 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
132 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
50 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
35 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
91 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
474 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
102 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
39 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
45 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
80 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
36 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
252 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
147 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
60 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 ...
1
vote
0answers
26 views

.screenrc setting to make the silence notification to stay

Is there an option for .screenrc file so that the silence message <c-a>_ stays on the terminal until I press any keyboard button?
1
vote
2answers
1k views

How do I kill all screens?

I accidentally created over 1000 screens. How do I kill them all with one command? (Or a few)
1
vote
2answers
2k views

Screen is terminating

I have installed screen on Fedora 19. When I test the command as root remotely through SSH, it works perfectly. For instance, if I enter screen a new terminal emulator is started and waits for ...
2
votes
2answers
582 views

search text on the terminal output

I am running an application with command $ grails run-app which prints log in terminal like below. What I want is search a particular text (say user authorities) in this log so that I can verify ...
3
votes
1answer
244 views

GNU Screen switch from vertical split to horizontal and back

I'm using a recent version of GNU Screen, supporting vertical splits. Once I have split a window in 2, how can I switch so that they are both dividing the whole region in half horizontally versus ...
1
vote
0answers
200 views

How to create a “Turn Off Screen” Action?

I recently moved to Elementary OS Luna. I especially use the Synapse Indicator launcher, because I like to work with my keyboard for everything. In Synapse and in the Synapse Indicator (and I ...
2
votes
0answers
93 views

screen toggle windows doesn't work with custom command key

I've been using GNU Screen for a while now, but I prefer mapping the command key to something other than C-a, as I use that to go to the beginning of a line. For a while now, I've been running screen ...
3
votes
1answer
202 views

Tmux: equivalent command to screen -d -m -S session_name

I'm looking at replacing screen with tmux, currently I use this screen command: screen -d -m -S session_name /root/script Is there an equivalent command for tmux that will do the same thing?
1
vote
1answer
695 views

Open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just ...
3
votes
0answers
128 views

Convert screen log to html

I would like to log actions made in a terminal window, and convert the log to html on fly. I already tried commands script/screen + ansi2html, but the result is not perfect: the escape sequences for ...
2
votes
1answer
134 views

My bash prompt is not working in `screen`

On RedHat, screen resets my bash prompt. I set PS1=\u@\h:\w in ~/.bashrc and ~/.bash_profile. I added shell -$SHELL as well to ~/.screenrc. But, when I open a brand new terminal window, the prompt ...
2
votes
1answer
163 views

Screen - inherit current window's environment

In GNU Screen, how can I create a new window whose shell inherits the environment of the shell in the current window? The usual Ctrl+A C doesn't seem to do this.
2
votes
1answer
83 views

bash - inherit directory stack in children

If, in my newly created bash, I do: pushd foo pushd bar dirs -l -v I will get something like 0 bar 1 foo 2 old_dir If I then do bash dirs -l -v I get only 0 bar The same thing happens ...
1
vote
0answers
89 views

GNU screen :fit equivalent in tmux

I'm experiencing this problem where I've attached a single tmux session at multiple terminals with differing console sizes. Is there a solution to rid of the view-port without having to disconnect ...
1
vote
1answer
464 views

How to get byobu to start at startup with a command executed, as root?

I want when the computer start, a byobu session is started and a command executed in the first window (windows 0), without requiring any user intervention. It is very important that this doesn't ...
3
votes
1answer
306 views

Opening multiple split windows with GNU screen with single bash script

I would like to create a bash script to automatically open a screen window with 4 sessions running predetermined commands. I'd like to open htop and slurm on the top two frames, squidview in the ...
1
vote
1answer
394 views

Corrupted gnu-screen session not displaying UTF-8 correctly

(Edited to clarify the role of Emacs in the problem with the display.) My current gnu-screen session has gotten corrupted somehow, and Emacs fails to display UTF-8 characters properly. I've ...
1
vote
1answer
99 views

GNU screen - kill outer nested session

I use screen on a daily basis. My caption line in ~/.screenrc looks like this: caption always '%{= dg} %H %{G}| %{B}%l %{G}|%=%?%{d}%-w%?%{r}(%{d}%n %t%? {%u} %?%{r})%{d}%?%+w%?%=%{G}| %{B}%M %d ...
2
votes
1answer
112 views

Emacs Key-binding and the TERM variable

I changed the value of TERM to screen-256color from xterm and it effects the key-bindings in Emacs. Mainly the bindings that use the arrow keys now inserts A,B,C,D instead of running backward-word and ...
7
votes
3answers
729 views

How to tell if terminal session is running within screen

When running a bash script, I would like to be able to tell if it is running within a screen. Is this possible? I want this so that .bashrc can set the colour of the command prompt depending on ...
2
votes
2answers
675 views

Find out screen id

I want to start a program with SSH using PHP, which works fine, but now I want to kill the screen with PHP, but the only thing I know is the name of the screen. How do I find out the screen ID ...
1
vote
1answer
254 views

Remotely compile and run program using ssh and screen

I'm trying to compile and run a program remotely. However, I'd like to this within a screen and also I'd like to run this using grid engine on another node after I ssh. Currently I have: ssh ...
3
votes
1answer
134 views

Why is “[ok]” not shown in daemon status message when using GNU Screen?

I have a debian-based system (Voyage Linux 0.9.1 actually, which is based on debian wheezy) and when I do /etc/init.d/ntp status it returns (for example) $ /etc/init.d/ntp status [ ok ] NTP server is ...
4
votes
2answers
106 views

How do I go to beginning of command line when I am inside the screen?

In bash I can hit Ctrl + a and go to first of the command line. But in screen Ctrl + a does not do this. How do I go to first of command line in screen?
1
vote
1answer
415 views

Cron automated bash script to run run 1 bash script then another, plus integrity check

So I have a custom in-house app developed by a 3rd party. When the app is running, I can verify it is running with the "screen -ls" command. As long as screens are running for rails and freeswitch ...
0
votes
0answers
21 views

Sending commands to a deattached screen [duplicate]

I am trying to send commands into a screen with what I thought should be a simple script. I am using it for a minecraft server. The script is as follows... #!/bin/bash echo "Creating screen" screen ...
1
vote
1answer
57 views

clear gnu screen window name

I'm using screen with a hardstatus listing my open windows, I usually have a few named (mail, im, top, etc.) and a few with blank name. Some program changes the current window name, for my named ...
2
votes
1answer
696 views

Screen escape dollar sign

I'm trying to run a command using screen which contains the dollar sign, but the dollar sign does not get through. screen -d -m echo \$ > test.txt test.txt just ends up being an empty file...
1
vote
0answers
141 views

GNU screen, tmux, dvtm - none work as ordinary user

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
1
vote
1answer
283 views

How can I scroll screen or tmux buffer without pausing the application?

I want to have the same behavior as C-A/C-B+[ provides except i want to be able to return to my application to see that it has progressed in her calculations or has not disconnected to the server ...
2
votes
2answers
193 views

Is it possible to copy data from one screen session to another?

I recently needed to copy X amount of lines from a file, that I opened in vim and then paste them to another file opened in a different screen session (and different server). So on screen #1 I ran in ...