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
2answers
104 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
67 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
102 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
163 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
138 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
257 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 ...
0
votes
2answers
346 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 ...
1
vote
1answer
112 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
430 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
24 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.
11
votes
1answer
632 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
57 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
0answers
192 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
68 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
588 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
162 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
160 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
38 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
69 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
261 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
719 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
263 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
161 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
952 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
1k 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
358 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
107 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?
0
votes
0answers
23 views

application in screen sometimes gives characters at wrong location

I have a character bases application in a telnet session. To allow reattaching of lost connections i use screen. But sometime i get character at wrong screen-location. The application is 8 rows by 20 ...
1
vote
3answers
1k views

Persistent PuTTY sessions for multiple windows

I'm working in various Linux environments through PuTTY connections which break from time to time. I'm looking for a solution to make the PuTTY windows persist (e.g. if I was editing a file, then ...
1
vote
1answer
86 views

Setting gnu screen split by default

Is there a way in say a .screenrc file to simulate the following commands? screen (ctrl + a) + :split (ctrl + a) + tab (ctrl + a) + c (ctrl + a) + tab (ctrl + a) + :resize 10 Basically what it does ...
0
votes
2answers
699 views

PuTTY + Ubuntu 12.10: why do I have no colors unless I use screen?

I am accessing a new Ubuntu 12.10 installation via PuTTY. I am attempting to get my shell to display in color. Color works fine in interactive applications like vim, but I want to get color in e.g. my ...
1
vote
1answer
1k views

Horizontally split-screen with two programs?

I have two programs A and B. I want a single command, which will run Program A and Program B in two different terminals but in the same tab, i.e, in a horizontally split terminal. I know screen can do ...
0
votes
0answers
57 views

Screen ssh tunnel doesn't seem to work

I've got an entry in my .screenrc that goes like this: screen ssh -nNfL 2200:remotehost:22 tunnelhost screen -t 'Launcher' ssh localhost -p 2200 This seems to start the tunnel session in screen no. ...
2
votes
2answers
300 views

Screen run command, detach and get output

I am trying write a script which connects and runs command on /dev/ttyUSB0 after that gets the output. screen -d -m 'SCREEN COMMAND' -L /dev/ttyUSB0 But this does not create an output file. How ...
0
votes
1answer
187 views

irssi keybinding: backward_word/forward_word

I'm currently experimenting with irssi as my irc client of choice and I'm getting along pretty well. BUT there is one thing I still need to get done. Somehow it isn't possible for me to use the usual ...
0
votes
2answers
595 views

Why Matlab in screen in Linux on PuTTY terminates itself after closing PuTTY session?

I connected to a linux server with PuTTY and start a screen session, and start matlab with: matlab -nodesktop Then, I run my matlab code as usual. The code will run for hours. So to test whether ...
0
votes
1answer
415 views

How do I forcibly kill a locked screen session?

I have an old screen session on a server that seems to be password-protected. The problem is, I don't recall setting a password on it, and I have no idea what the password could be. Any terminal ...
1
vote
1answer
197 views

How to connect to a vim server running in a re-attached screen session?

I normally ssh -X to a remote Linux box, launch GNU screen and run vim in server mode inside screen. After detaching and re-attaching to the screen session, I cannot send files to the vim server ...
6
votes
2answers
615 views

Screen divider / border width and color

In GNU screen, using a horizontal / vertical split, how do you set the color and width of the divider between the splits? I want to make them thin and darker so they don't stand out as much. There is ...
0
votes
1answer
148 views

Running Emacs on Multiple TTYs in screen

When working with EMACS over SSH, is there any way to spawn a new frame of the same emacs session on a different terminal? In my use case, I have screen running, so I have multiple terminals, and can ...
1
vote
1answer
127 views

Screen and xclip - configuration that don't work

I'm trying to configure GNU/Screen utility to work with X clipboard. I followed the tutorial: http://www.lowlevelmanager.com/2012/10/screen-clipboard-to-x11-clipboard.html but without a result, so I ...
1
vote
0answers
78 views

Keep GNU screen from resizing

I found a few threads that dealt with screen resizing a terminal, but I'm looking to do the opposite. I want to run a screen session with a height of 4 to limit output (why I'm doing it is ...
0
votes
1answer
404 views

Screen multiuser - Permission denied

I'm trying to send input to a screen session from php. So far I have followed the steps explained here Is running GNU Screen suid root the only way to make multiuser mode work? And I have set ...
0
votes
2answers
206 views

I logon via ssh and the first command is always screen. Can I make it either reconnect to same sesson or make a new one if one does not exist?

Basically what I want to do is something like this: screen -session-name=mydefaultscreen and if the 'session name' of mydefaultscreen doesn't exist, it creates it. if it does exist already then it ...
1
vote
2answers
105 views

bash screen title usage (screen -t “something”)

I was working with screen lately and wanted to use the -t option for it. What's the point of the-t option if the title of the screen does not show anywhere like when using -list or within the screen ...
1
vote
1answer
543 views

Enable audible bell in gnu screen current window

I use putty to ssh to a ubuntu bash shell, which holds irssi in a screen session. I figure I can probably configure irssi to send system bell when certain messages show or activity happens, and I ...
1
vote
2answers
2k views

Running Linux commands in the background: ampersand (&) or screen

Running an app in the background can be done by adding ampersand (" &") at the end of the app or via screen (by opening a screen session) if the app needs input now and then. Is there any other ...
1
vote
3answers
164 views

Is there a way to ask screen to start with terminal split in 3 parts with a different command running in each?

I always start 3 terminals with a dev server in one, a python shell in the second one and a cd in the third one, ready for bash input. I would like to have in my .bashrc a shortcut to set this up ...
3
votes
1answer
986 views

How do I use the terminal SCREEN when chrooted?

How do I allow a user to use SCREEN on a chrooted user? I have tried everything but I keep on failing. I need the user to be able to use SCREEN when they are logged in bash as a chrooted user.
3
votes
4answers
152 views

When using screen, I see me as logged in twice through 'who'

I've been using Gnu screen for some time now, and I absolutely love it! I installed it on a second RHEL server of mine, and I'm seeing odd behavior when I issue a 'who' on the new server. 'who' ...