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)

1
vote
1answer
609 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 ...
1
vote
1answer
66 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
2k 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...
2
votes
0answers
173 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
376 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 ...
3
votes
2answers
341 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 ...
2
votes
1answer
129 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
292 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
668 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
109 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
141 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 ...
1
vote
1answer
598 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 ...
2
votes
0answers
31 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 ...
9
votes
2answers
8k 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
1answer
304 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
108 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
237 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
1k 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
64 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
216 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 ...
3
votes
1answer
585 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
429 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
354 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
182 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
285 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
328 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 ...
7
votes
1answer
3k 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 ...
0
votes
1answer
196 views

Open screen in terminal after user login [duplicate]

When a user logins to my Debian server using e.g. Putty, I need to perform the following: It will automatically execute command screen -r MyWindow, and the user won't be able to leave the screen ...
4
votes
3answers
691 views

Ctrl-a does not take me to the beginning of the prompt while I am working within a GNU screen

To navigate to the starting and end of a command, I usually use Ctrla and Ctrle. However, when I work within a GNU screen, those keybinding do not work becuase perhaps they are being used by the GNU ...
2
votes
2answers
72 views

Grab text from detached screen [duplicate]

I am working on a collectd plugin to monitor a program I have running in a detached screen session. This program constantly updates the terminal with its status by replacing its old status (similar to ...
0
votes
2answers
253 views

How to find which screen session is one working on

I use the screen program extensively. It has helped me tremendously by reducing the time spent in setting up session every day. However, now that I have >8 screens - I forget sometimes which screen I ...
1
vote
1answer
164 views

GNU Screen: Strange TERMCAP when using -d -m

Depending on how I run screen, it either does or does not have the right TERMCAP info. The symptom of this is that colors don't always show up in my terminal correctly (eg: ls, vim syntax ...
1
vote
2answers
465 views

screenrc: find out the keys bound by bindkey

The bindkey keyword in .screenrc is preceded by some cryptic keys that correspond to some keybouard binding. How can I figure out what these are? Google and GNU Screen Documentation did not show the ...
2
votes
2answers
80 views

How can I find out which version of screen I am using?

Further to my previous question on screen not splitting my terminal , I got to the point where I can split my terminal horizontally but not vertically . This documentation says that vertical splitting ...
0
votes
0answers
434 views

running matlab command line in screen — can't type after reattaching

I'm logging in via ssh to a more powerful computer, on this I start a screen session with screen -S mine and then open a matlab command line via matlab -nodesktop -nodplash and then run within matlab ...
2
votes
2answers
434 views

Screen: “Cannot exec /my/path/to/zsh” with local shell

Whenever I try to run screen under a Zsh shell that I compiled under my home directory, I get the following error: > screen Cannot exec '/my/path/to/zsh/bin/zsh' The Z shell is perfectly ...
4
votes
3answers
685 views

How to attach gnu screen without knowing tty number

After starting multiple gnu screen sessions with screen -S name1 screen -S name2 I would like to selectively attach to them. If I do screen -D -R name1 it will not attach but instead print: ...
2
votes
1answer
276 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
6
votes
2answers
2k views

GNU screen: print a detached session to stdout

I just want to have a quick overview of my detached GNU screen sessions. Is it possible to dump the current content to stdout ? Something like screen --print SESSION_NAME > file.txt
8
votes
1answer
1k views

How can I change screen's hardstatus color based on the logged in user?

I haven't edited/created a .screenrc file in a while, but this is what I'm currently using: # Turn off the screen startup message startup_message off # Define format of bottom ...
3
votes
2answers
2k views

Attach to existing screen session, but new window

So I have a screen session running on one terminal/machine I would like to write a script that would attach to that screen session on another machine, but to a new window in that screen. Does anyone ...
3
votes
1answer
81 views

How can I do logging of every screen sessions

I am using screen utility for couple of years. I just simply love it. In cloud machines I do have multiple screens as I work with a team. I want to log every commands that have been run in every ...
3
votes
1answer
74 views

How to set unbuffered IO in `screen`?

I use screen as a minicom replacement, but the only problem is I don't get all output immediately, because of buffering. Is there a way to turn off buffering for screen?
1
vote
1answer
98 views

After running screen, screen doesn't seem to be running

I use ssh to log into a remote machine and then I use the screen command to create a virtual screen. Now, if I type in exit normally I should only exit the screen and return to the remote ssh ...
2
votes
1answer
175 views

How to set Cols and Lines for a Subprocess

I have a script that runs a series of scripts numbered 001,002,003,004... etc down to 041 right now, will be more in the future - and these scripts them selves use some cursor control to print a ...
4
votes
1answer
3k views

GNU screen: how to resume my screen session reliably?

I was unable to resume my screen session this morning, even after I killed the old screen -r session. svtbuild@dvm-2:~/rfs$ screen -r 17757.pts-0.dvm-2 There is a screen on: 17757.pts-0.dvm-2 ...
3
votes
1answer
1k views

Trouble sending command to detached Screen session

I would like to send a command to a screen session and if possible get the output. My attempt at sending a command to a screen session is as I found on this website and lots of others, but it doesn't ...
3
votes
3answers
198 views

Replacement shortcuts for `screen` [closed]

Screen uses the shortcut CtrlA to activate. I find that this interferes with the Bash command for jumping to the start of the line, and the VIM command for incrementing an integer. Certainly I could ...
2
votes
2answers
6k views

Send file by xmodem or kermit protocol with GNU screen

I work with an RS-232 device via GNU screen. $ screen /dev/ttyUSB0 115200 At some point I need to send a local file to the device using either the xmodem or kermit protocol. On Windows I use ...