GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

learn more… | top users | synonyms

1
vote
0answers
61 views

Emacs and Gnu Screen Causing Line Wrap Problems

I have gnuscreen on with multiple "tabs" open. Emacs is on tab 0. When I tab to a different screen and return to Emacs, the lines do not wrap properly anymore. They blend into each other. If I have a ...
0
votes
1answer
421 views

Locking a GNU-screen session after x minutes of non-use on Linux

I have a couple of services running in a GNU-screen session on top of Bash. Because one of the services contain sensitive data I have to constantly either close the terminal completely or lock the ...
0
votes
1answer
65 views

How to switch to an existing vim instance from inside of screen when opening a file twice

When i work on many files with screen and vim, often i try to open a file already open.. I must switch manually between screen windows witch ctrl-space and press ctrl-g until i find the right window. ...
1
vote
1answer
163 views

GNU Screen: run arbitrary command in the status bar?

Is it possible to get GNU Screen to display the output of an arbitrary command, e.g. who | wc -l, in the status bar, refreshing it, say, every minute?
2
votes
1answer
81 views

Gnu screen: Problems with %F

I'm trying to set region captions to list all windows on active (focused) screen region, and only the title for other regions. For example: caption always "%?%F %w %: %n*%t %?" should display ...
0
votes
0answers
76 views

Prevent a GNU Screen session from closing

So I run Irssi on my VPS inside a GNU Screen session and sometimes accidentally close Irssi process when I log out, therefore forgetting to close the Screen session beforehand. Is there a way that I ...
0
votes
1answer
227 views

Setting GNU Screen to send escape codes to outer terminal on TI

I’m using GNU Screen inside mintty. To get the scroll wheel to work, I had to switch the mintty scroll wheel mode with an escape code (^[[?7787h). This has the effect that the scroll wheel does not ...
0
votes
1answer
2k views

No Sockets found in /var/run/screen/S-root. when using `screen`

I want to screen on a machine with fedora the result is: [root@kitch udp]# screen -ls No Sockets found in /var/run/screen/S-root. [root@kitch udp]# screen -ls listen_for_exception No ...
1
vote
3answers
1k views

vim under screen under PuTTY working with mouse wheel?

Is there any way to make this work? i'd love to scroll my files in vim with the mouse scroll wheel. Also, i wouldn't mind scrolling the gnu screen buffer with the mouse wheel as well, without having ...
2
votes
1answer
984 views

List processes being run inside a screen (Linux) session

I have several screen sessions, each one of them is running one java application. For example, I have these 3 screen sessions : 7361.ARM48 (Detached) 7397.ROP90 (Detached) ...
0
votes
0answers
396 views

Autostart multiple screen sessions in Ubuntu Server

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
0answers
10 views

Autostart multiple screen sessions in Ubuntu Server [duplicate]

I recently set up a Newznab server on Ubuntu Server 12.04 (nothing illegal, just TV shows as I prefer to use XBMC instead of Tivo) and I'm having some trouble at the very final step. I can run my ...
0
votes
1answer
61 views

Emacs and Unix Screen

I'm in Screen and have one window set to emacs. When I leave that window and maneuver to a different one, say screen two or three, the text in the original emacs window gets discombobulated. The line ...
3
votes
3answers
2k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start a screen when I ssh in, and NOT exit my ...
0
votes
2answers
196 views

can a .screenrc key binding contain variables?

I'm working on a customer .screenrc for Screen and I can't seem to find a way for it to support variables. Here's what I'm trying to accomplish: I want to press ^l, then specify a name, and that ...
0
votes
3answers
51 views

Unable to access shell on ssh

I have added the following line to my .bashrc file to start gnu screen on login: exec screen But it seems to go in a loop (may be that is its starting screen also on screen start). I am not able ...
3
votes
1answer
447 views

How to get GNU-Screen Command in Linux to echo locally

I'm looking to run screen screen /dev/ttyS0 115200 and echo my commands locally. This is one of those rare phrases where google spits out a lot of irrelevant results.
0
votes
1answer
71 views

putting “screen” in ~/.profile does nothing

I want to always use "screen" in any terminal. i've added into my ~/.profile a new line: "screen", just like it said here: ...
0
votes
2answers
190 views

Can gnu screen prompt for a title when a new window is created?

There are a number of questions about automatically naming screen windows based on what's running in them. But sometimes why you created the window is more important than what you're doing in it. ...
1
vote
2answers
160 views

Is there a way to make GNU Screen not prompt for confirmation?

My googling only left me the clue that this was the case for old screen, and now the new screen prompts for confirmation (e.g. whenever I try to kill a window or exit out of screen) . Is there a ...
0
votes
3answers
278 views

Tell GNU screen to 'reattach or create and execute command'

For using IRC, I usually open irssi on my headless server in a screen session. Then, sometimes I detach it to wait for an answer, but sometimes I'm not sure if a screen with irssi is already open on a ...
3
votes
2answers
846 views

Use of screen on terminal is blocked by length of user name

I am a user of screen on terminal, but i tried to mount a screen on my Macbook and results in this warning: $ screen LoginName too long - sorry. I read on web and the suggestion is change the ...
3
votes
2answers
174 views

Restart a process in detached screen via ssh

I have a server with several screens running, each with their own node server listing to different ports. I'd like to create Jenkins jobs to ssh into the box, reattach a specific screen, stop the ...
1
vote
2answers
122 views

Screen: Grouping all vim invokation under one window

In screen, would it possible to open up all instances of vim in one window? (e.g. window 2) Initially, the window will switch to the designated window and open up the file in the buffer. And ...
0
votes
2answers
72 views

Pasting in vim via screen

I noticed that I have to be in insert mode in order to paste in vim using screen's shortcut C-a ] or C-a C-] otherwise I get garbled up (not necessarily garbage) output. I do not think this behavior ...
1
vote
1answer
124 views

gnu screen | running screen in screen | keyboard shortcuts

I want to run GNU screen in another screen session. Running is not a problem but the keyboard shortcuts are captured by the "parent" screen session. Is there a way to pass these keyboard shortcut to ...
2
votes
0answers
198 views

How can I timestamp each line outputted by a serial device?

I access a serial measurement device via screen /dev/tty.usbserial 9600. While the device is measuring it outputs its data n times per second on one line. How can I add a timestamp every line (or ...
0
votes
0answers
157 views

How can I send a command to two separate screen sessions simultaneously?

I'm monitoring two measurement devices (usbserial1 and usbserial2) over RS232 (via an USB adapter). I do this in the following way: I open two terminal windows. In one window I write the following ...
1
vote
1answer
339 views

Set gnu screen title within ssh

On my local machine, window titles within screen update nicely to the pwd. I have shelltitle '% |bash' in my .screenrc. Yet when I ssh to another host, the window title remains as the pwd from ...
1
vote
2answers
497 views

How to actually type CTRL-A in a linux terminal?

How do I to invoke Ctrl-a in a Linux terminal session. I am trying to share a screen using screen. The command to turn on multiuser is Ctrl-A :multiuser on , I know how to press Ctrl+a on my ...
2
votes
1answer
145 views

Taking a screenshot of screen session over ssh

I often log via ssh to servers just to execute screen -r and look at my irssi irc session. Then I do Ctrl-AD and logout. Is there a nice solution to wrap this into a script, so that I get to see the ...
2
votes
1answer
520 views

Clearing screen after quit in Windows vim with ConEmu/Cygwin

I'm trying to bring to work together 3 things: ConEmu, Cygwin and vim. The vim in question is not Cygwin vim, but the native Windows vim from gvim package (chosen because Cygwin vim does not support ...
0
votes
1answer
25 views

To move between windows in Screen by combine keys

How to bind following key to move between windows in gnu screen ? Ctrl+Shirt+h: move to prev window Ctrl+Shirt+l: move to next window Thanks a lot.
12
votes
1answer
728 views

GNU Screen on MacOS 10.8 says “Be careful! New screen tonight”

GNU Screen on MacOS 10.8 says "Be careful! New screen tonight" when it starts up screen sometimes. Any ideas what causes this, or is there a way to disable it and/or change the text to something else? ...
0
votes
1answer
58 views

gnu screen command that stops running then switching to another tab

I use GNU screen to keep a bunch of tabs open in my terminal session, and I would like to have a bash command, watch -n 1 ps aux | grep something, that runs when I am looking at that screen tab, but ...
1
vote
1answer
255 views

How do you resize a split window in gnu screen to maximum?

While in gnu screen for linux, how do I resize the current window to full screen? <ctrl-a> a :resize max does not work.
1
vote
1answer
72 views

Vim on screen, without looking

I'm trying to do the following: Start a new screen session Start vim on it. Feed commands to it. Check the output as a means of testing vim. I can do this, but the catch is that I want it to be ...
7
votes
2answers
747 views

Can I steal a vim session from another terminal?

I forgot to start screen before I started working, and now I've SSH'd into my machine from my laptop. ps -a gives me the process ID of the vim process. Can I steal the vim session from my other ...
2
votes
1answer
212 views

Allowing a process in screen to restart itself

System is Debian Whezy x64. I currently use screen to start programs as user rather than root. It looks like this: In /etc/rc.local, I call su -c "/home/user/scripts/startup" user Then, in ...
3
votes
1answer
178 views

No-socket alternative to tmux or screen

My university gives each student a directory on their AFS which is accessible via SSH. There is a (light) CLI-driven piece of software that I would like to run continuously from the university. I ...
1
vote
1answer
39 views

In screen, close emacs window AND scroll up

When I use screen and I close an emacs window, the prompt remains at the bottom of the screen where than popping to where the prompt was before I opened emacs. How can I fix this? It only happens when ...
0
votes
1answer
74 views

How do I specify the screen-name for a command (Gnu-Screen)?

If there are 2 gnu-screens, with the name: screen1 and screen10. If we want to do something with screen1, I can't, because if I try as example to print something to the screen, it will say that there ...
0
votes
1answer
410 views

control-left and control-right not working in vim, within a screen session

In vim, control-left and control-right are back and forward whitespace-separated word (i.e. synonyms for B and W), the same as web textareas and bash. But when running screen, these keys stop ...
2
votes
2answers
983 views

Screen session wouldn't detach, now it won't attach

I typically log into my Linux box from my Windows laptop using PuTTY and run screen there. When my corporate overlords decided to update my laptop to Windows 7 my PuTTY sessions have been freezing. ...
0
votes
1answer
365 views

In gnu screen, how do you reload .bashrc in all windows?

I typically use about 10 windows in gnu screen and am constantly customizing my .bashrc. I would like to be able to source .bashrc across screen windows with a one-liner. Can I broadcast a command ...
0
votes
1answer
196 views

Why does my screen session still have “attached” status?

Why does my screen session still have "attached" status, when tcp/ip connection is broken?
2
votes
1answer
1k views

How to enable mouse wheel scrolling in GNU screen?

In my GNOME Terminal, I can use my mouse wheel to scroll up and down. But as soon as I start screen in my terminal, 'mouse wheel' does not work. How can I get my mouse wheel to work in screen?
4
votes
1answer
2k views

Why a command launched with nohup isn't able to write file after user logout?

I'm using nohup to launch matlab and run a script which requires to read and write some given files. nohup matlab -nojvm -nodisplay -r 'MyScript'& This runs smoothly while I'm logged in but as ...
2
votes
2answers
410 views

How can bash screen be setup in the background and brought to the front later?

This a deeper explanation for the question. My goal is: Start a bash shell configured with a set of environment variables, but running in the background. Launch about five screen commands in the ...
1
vote
1answer
111 views

In Screen, how can I use 'F1' (function key) as my escape key?

how can I use 'F1' (function key) as my escape key? I have the following: escape `` I want to switch to use F1 as my escape, how can I do that?