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
112 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
226 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
421 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
83 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
117 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
388 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 ...
8
votes
2answers
3k 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
230 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
81 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
195 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
817 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
60 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
165 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
382 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
298 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
269 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
160 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
153 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
257 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
2k 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
166 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
393 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 ...
1
vote
2answers
63 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
170 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
130 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
309 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
79 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
373 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
353 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 ...
3
votes
3answers
560 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
223 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 ...
5
votes
2answers
1k 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 ...
2
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 ...
2
votes
1answer
61 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
72 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
92 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
130 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 ...
2
votes
1answer
2k 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 ...
2
votes
1answer
857 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
176 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
4k 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 ...
13
votes
8answers
609 views

Suggested setup for an ultra-lightweight text-based programming environment in linux

I am looking for suggestions for a setup for my particular needs. I haven't done much linux since college and want to get back into it as a hobby. I have some not-too-powerful hardware (512 MB ram, ...
6
votes
3answers
686 views

How to screen'ize already running session? [duplicate]

Possible Duplicate: How can I disown a running process and associate it to a new screen shell? It is a good practice to run long processes in screen session, to protect them from session ...
1
vote
2answers
278 views

How to run linux process and come back to it later?

I'm trying to run a minecraft server on linux. Running the server starts an important interactive session. I can run the server in the background by appending & at the end of the command and log ...
3
votes
0answers
30 views

Permanently fixed screen titles [duplicate]

Possible Duplicate: Force title on GNU screen I know how to set a title in screen (Ctrl-A A). However, every time I do so, if I change directories or run a command, the window title ...
2
votes
2answers
82 views

`cd` all screens to the PWD of the current screen

Suppose that I am running screen on a remote server with four open screens. Is there a quick way to cd all the screens to the working directory of the currently-open screen?
1
vote
2answers
277 views

Unable to 'stuff' commands into a created 'screen' immediately after creating it [duplicate]

Possible Duplicate: sending text input to a detached screen With reference to the answered question: Sending input to a screen session from outside I am trying to write a script that will ...