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
212 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 ...
2
votes
1answer
155 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
125 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
76 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
154 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
527 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
115 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
98 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
116 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
71 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
70 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
341 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
233 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
0answers
218 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
86 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
92 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 ...
6
votes
3answers
505 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
397 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
180 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
113 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
98 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
260 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
52 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
247 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
133 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
212 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
138 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 ...
1
vote
1answer
89 views

Execute a command in a new named screen

I have a script that creates a new screen and executes a command (dev webserver) in it. screen -S webserver -dm sh launch_webserver.sh However, when the command is done (or webserver quits), the ...
1
vote
1answer
185 views

How can I set up byobu to use a second screen session on login?

tl;dr: I have an irssi proxy screen session running in the background. I'm running byobu -R -S byobu;exit in ~/.bash_profile to start a second session instead of reconnecting to the irssi session, but ...
2
votes
1answer
278 views

GNU Screen doesn't echo unicode characters correct

When I do this in my terminal: echo -e "\xF0\x9f\x8d\xba" I get a cool beer mug in my terminal: 🍺 However, when I start screen, and try the same, I'm getting a �. How do I get the nice beer mug? ...
0
votes
1answer
73 views

Gnu Screen and vi - visualization issues

The scenario is as follows: gnu screen launched onto a scientific Linux distro ssh to an aix machine tried to edit a file with vi And this is what I got: "ex: 0602-108 screen is not a ...
2
votes
0answers
97 views

Simulating GNU Screen's shelltitle in tmux

I'm trying to simulate GNU Screen's shelltitle feature in tmux. I have the following in my ~/.bashrc: if [[ "$TERM" == screen* ]]; then SCREEN_ESC='\[\ek\e\\\]' else SCREEN_ESC='' fi ...
0
votes
1answer
260 views

Resume bash session in new TMUX or SCREEN? [duplicate]

Sometimes I'll start doing something fast. I've got something to do, and I need to get it done now. Then of course i realize that I need to do something else to help me finish what I started, so I ...
1
vote
0answers
29 views

Can I avoid screen from creating inner screens?

I just started using screen and "screen inception" makes learning screen even more confusing. Can I avoid screen from creating screens when I'm already inside a screen? I'm using fish as my shell ...
7
votes
2answers
602 views

how to output text to both screen and file inside a shell script?

Currently I have a shell script which logs messages to a log file like this: log_file="/some/dir/log_file.log" echo "some text" >> $log_file do_some_command echo "more text" >> $log_file ...
1
vote
0answers
187 views

GNU screen startup is really slow

I connect to a RHEL 5.7 server via Putty or VNC (not sure it matters) but when I try to run screen, it takes forever (on order of 20-30 secs). Same thing if I run screen -ls, takes just as long. I ...
1
vote
1answer
68 views

incorrect/overwritten margins when using vim in GNU screen

When ssh'd into a work server via PuTTY I'm seeing strange behavior with the left margins when using GNU screen and vim. For example, I'll open up a Python script and all indentations will be gone ...
5
votes
1answer
155 views

Have screen indicate there is a bell/alert with entire status bar

I am wondering if anyone knows a way to have the entire status bar in screen change when there is a bell alert inside a screen session. Internally at my company we use jabber, and being that I work ...
1
vote
2answers
540 views

Running `screen` through a @reboot cron job

I want to have a script running in screen at startup. This doesn't work: @reboot pi screen -d -m /home/pi/db_update.py however running this manually as user pi works: screen -d -m ...
2
votes
1answer
58 views

'screen' utility : how to prevent it to handle the display? [duplicate]

The screen program fully controls what's displayed. For example the scrollback buffer is not the one of the terminal. I don't like the idea to have a separate set of commands, and a separate set of ...
4
votes
1answer
142 views

GNU Screen weird characters on click

I have a small problem in GNU screen. A GNU screen session runs on my RaspberryPi. Now sometimes, when I join it, if I click in the terminal (I'm using terminator on Fedora) I see weird characters ...
2
votes
1answer
278 views

Line endings when using GNU Screen

I'm seeing some slightly odd behaviour when using GNU Screen 4.00.03 on a Red Hat Enterprise Linux 6.4 system. If I connect without Screen, looking at the logs I can see each line is terminated with ...
3
votes
1answer
184 views

UTF-8 Characters in Byobu Screen Status Line

I'm running Byobu with Screen backend. I have a custom status script that wget's an RSS feed and shows the latest headline in it. If there are non-ASCII characters, they are not printed correctly. ...
-1
votes
1answer
231 views

SSH screen (CentOS) crashes

I use the screen command to run a Minecraft server on my CentOS 6.4 machine. However, once I end the SSH session, the Minecraft server and the screen will eventually simply stop such that when I come ...
2
votes
2answers
147 views

Share background jobs between shells

I use Screen with a lot (more than 10) of local Bash sessions inside. I send some processes (like vi file) to the background and switch between sessions very often and sometimes it's very annoying to ...
2
votes
3answers
114 views

Is there a way to maintain ssh-agent connectivity in different screens?

Whenever I use ssh-agent for passwordless logins it doesn't work across different logins and screen sessions, even if they are concurrent. I suspect it uses some shell variables that don't work ...
2
votes
3answers
210 views

Log in with specific shell at terminal login

If I log in to a system over ssh, I can use the default shell with a simple ssh user@host, or specify something like ssh user@host 'bash --norc --noprofile' or ssh user@host ksh. Is it possible to ...
3
votes
1answer
1k views

How to open tabs windows in Gnu-screen & execute commands within each one

when starts session named any name like this screen -S name1 i want to open tabs windows in this screen session like when open tabs in gnome-terminal like this gnome-terminal --tab -e "some ...
0
votes
0answers
31 views

Pass process ownership to another shell [duplicate]

I didn't hear of anything like this, but It might be possible. I often end up starting a process on a server and midway realizing that I would like to suspend that process and continue it inside a ...