screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

learn more… | top users | synonyms

-1
votes
1answer
27 views

Open Google Chrome on Centos 7 and screenshot it [on hold]

I have Centos 7 server installed on AWS and I installed "google-chrome" on it using a sample code on the internet which works fine. cat << EOF > /etc/yum.repos.d/google-chrome.repo ...
11
votes
5answers
14k views

Set xterm (PuTTY) window title when using screen?

I am trying to get screen to set my xterm title. I have this working outside of screen, but screen keeps whatever title was in place when I started it. Here is my .bashrc: function ...
1
vote
3answers
4k views

Specifying a log name for screen output without relying on .screenrc

In a bash script, I use "screen -L" to log executed commands in color. For example : screen -L tree Then we read logfile with less -R. When this script is executed, other screens are ...
0
votes
1answer
30 views

Implementing Custom Lock Screen image

I have a Domain running at the Windows Server 2008 functional level, which cannot be upgraded currently due to logistics reasons. I have a group of Student-access clients all running Windows Server ...
1
vote
0answers
30 views

Find pid of long running bash script [closed]

I find myself in an interesting situation I can't think of an easy solution for. I started a long-running shell script that I can't stop or let die. I forgot to screen/tmux this script out or to ...
0
votes
0answers
13 views

Screen goes blank during boot on Debian 8.1 and there's no way to interact with the server [migrated]

I have this machine (motherboard ITX Jetaway NF94-270-LF based on CPU Atom N270, full specs here) as a server for some time now (about 4 years). Debian 8.1 is installed on it. Two days ago, after a ...
0
votes
0answers
2 views

How to specify GNU screen ACL as part of its command line?

What I'm trying to do is spawn a detached screen session, but as part of the command line that creates it - also modify the ACL list. So right now I have screen -dmS MySession "SomeProgram" ...
10
votes
5answers
10k views

How to scroll back in screen within a ssh session from OS X?

I do the following: Open Terminal.app Open a ssh session to a remote Linux server Open a screen session on the server Start a program who breaks with many lines of error reporting… How can I ...
1
vote
0answers
57 views

How to kill all process on ssh logout? (Kill running Background proccess started with screen etc)

Hi i have a multiuser centos server running. There are for example 3 users (non root) - each of them have their own homedir. SSH Login is allowed (bash). How could it be reached, if a user started ...
23
votes
3answers
15k views

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the ...
50
votes
3answers
14k views

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
1
vote
1answer
101 views

Running CAT in SCREEN no output to file

I am trying to code this command to run in screen along with 2 others that will be using cat to read a file then pipe it into awk for filtering. Here is the command; screen -d -m /bin/cat ...
2
votes
1answer
97 views

Prevent Screen from creating sub shells

I'm running a Linux system that starts a custom text mode application from the .bashrc. The users are getting disconnected due to network dropouts. I had the idea that I'd use screen to allow them to ...
15
votes
6answers
4k views

How to check if I'm in screen session?

is it somehow possible to check if I'm right now in screen session? I need it to determine if hitting ctrl+d would disconnect me from server or just close current screen. Thanks.
0
votes
1answer
29 views

screen -r and screen -list only show last screen

My problem is pretty much as the title describes it. I am running ssh session and on my server I screen for multitasking. My issue here is that I have at least 4 screens open and detached, but screen ...
11
votes
4answers
3k views

How do I prevent GNU Screen from reseting my prompt? [closed]

When I run screen it changes my prompt. How do I prevent this behaviour? For example: $ echo $PS1 \[\e]0;\h:Prod\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ $ screen $ echo $PS1 [\u@\h \W]\$ ...
20
votes
2answers
6k views

Why does redirecting 'script' to /dev/null/ allow 'screen' to work while su'ed as another user?

I was su'ed into a user to run a particular long running script. I wanted to use screen but I got the error message "Cannot open your terminal '/dev/pts/4' - please check." So I Googled around and ...
8
votes
5answers
7k views

Is there any way to make “screen” session survive reboot?

The question says it all. I am using screen utility and would like to preserve the session when machine reboots. If not possible may be you can recommend other alternatives to screen that would allow ...
-1
votes
1answer
39 views

Install screen on ubuntu 13.04 through .deb from web

I have a server on Rackspace w/ Ubuntu 13.04 (raring) that no longer has access to install packages through apt-get. Err http://mirror.rackspace.com/ubuntu/ raring/main screen amd64 4.0.3-14ubuntu9 ...
74
votes
13answers
80k views

How to reconnect to a disconnected ssh session

Is there a way to connect to an ssh session that was disconnected? We are having problems with our network connection to a remote site that we are working on separately; however, in the mean time we ...
5
votes
1answer
207 views

Exiting copy / scrollback mode upon detach in byobu / screen

I've discovered that if I go into "copy mode" or "scrollback mode" in a byobu screen, detach from it and leave it running, the buffer will fill up and eventually block the process I'm running in the ...
14
votes
7answers
11k views

How do I ask screen to behave like a standard bash shell?

Just learned about the screen command on linux - it is genius. I love it. However, the actual terminal/prompt in screen looks and behaves differently than my standard bash prompt. That is, the ...
7
votes
4answers
13k views

kill a screen (but not all screens)

I have multiple screens running on an Ubuntu server that are initiated as: screen -dmS screen1 cmd screen -dmS screen2 cmd etc... And I need to kill one screen, but not all of them. What is the ...
63
votes
7answers
26k views

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen (fails) I have a script that ...
2
votes
2answers
89 views

screen -R not working with ssh

I have a linux box in the office I want to ssh into from my Macbook at home. I can’t reach the box directly on port 22, but I have a port tunnel nailed up between localhost:23001 and port 22 on the ...
0
votes
1answer
38 views

How do I bind a key to a macro in GNU screen from the command line?

The GNU screen utility has a neat feature for binding keys to screen commands or macros. The stuff command is particularly handy to expand some abbreviation to some other string as your typing. For ...
0
votes
1answer
166 views

Asterisk Sip Server and “Screen Sharing” function

I'am newbie in asterisk, i followed the tutorials on the asterisk wiki, and installed the latest version (13) of the asterisk server. I was able to setup the voip now i wonder, there is a function im ...
3
votes
8answers
25k views

Remote Desktop Connection Screen is totaly black but server is working perfectly

Server is working perfectly but when I do RDC screen is only black. This happened before and I fixed it by powering off the server via KVM/IP, but I don't want do that again. How can I fix this issue. ...
2
votes
2answers
263 views

Taking over locked user sessions in XP

What's the best way to allow an administrator access to a locked user XP session, preferably with a logged event? The goal is to allow admins to cleanly shutdown/save existing work when work needs to ...
2
votes
2answers
143 views

Byobu - How to disconnect from lxc-console

I am inside Byobu on ubuntu 12.04 and entered an lxc-console. Unfortunately, the escape sequence for lxc appears to be cntrl-a q. However this clashes with Byobu's which also uses cntrl-a sequence. I ...
5
votes
5answers
6k views

Need a solution to stop students from rotating screen on laptops with intel graphics

We have some students who have figured out how to rotate the screen using either the hotkey combination or right click context menu. It's easy to fix but it's time consuming because no matter how many ...
1
vote
3answers
2k views

GNU Screen and .bashrc

I am trying to launch GNU Screen using my .bashrc. I'm almost there: if [ -z "$STY" ]; then exec screen -dR else exec gnome-terminal fi This is wrong though! The first case works, screen ...
0
votes
0answers
36 views

Convenient way to restart server inside vagrant

We have a webserver, that needs nginx and other configurations, so for development we use vagrant. vagrant ssh I want to easily [re]start it, so I use single line ssh commands. vagrant ssh -c "" ...
1
vote
1answer
201 views

Debugging frozen Gnu screen session?

We've been using GNU screen on our jump box to have ssh sessions open to multiple hosts within our private network. One window per host. Recently we've built a new environment and are experiencing ...
3
votes
1answer
126 views

screen: how do I move a window in between 2 other windows

In screen is there a way to put a window in between 2 others instead of swapping? Here is what I have 1 - I want this to become #2 2 - I want this to become #3 3 - I want this to become #1 If I go ...
1
vote
2answers
272 views

screen command process id

First of all sorry for my bad english and i am new at linux. When i do this, it can write process id to pid file start () { echo -n "Starting someserver.jar: " java -jar ...
0
votes
1answer
170 views

Execute a service as a specific user under ubuntu

I'm running a gameserver and want to start it on a screen on system start, but screen is user specific, so I have to run the command as 'user'. So I wrote this short service script which starts itself ...
4
votes
2answers
3k views

Password for GNU screen lockscreen command?

I have set a password for screen sessions in my .screenrc. It works great, any time I need to re-attach to a screen session I need to enter the password. There is another feature where you can ...
8
votes
2answers
5k views

Start Unix screen, Run command, Detach

How can screen be used to start a new session and run a command within that session without killing that session? screen -S myScreenName runSomething I tried the above command and it says [screen ...
0
votes
2answers
51 views

GNU screen without output caching

For a long running script we are using screen to be able to close the ssh session without stopping the script. Screen, however, keeps saving the output which is resulting in a very high diskio. My ...
2
votes
4answers
2k views

gnu screen + putty

Anyone here who knows how to get the +-*/ on the numerical keypad to work in gnu screen from putty? Number work fine but not the operators. the / seems to be bind to renme the current shell or maybe ...
16
votes
3answers
11k views

Reattach or create a named screen session? (or persistent screen sessions)

Basically I have a remote screen session, which I wish to automatically reattach to.. Currently I'm doing this by with the following command (as an iTerm bookmark, or an alias) ssh host -t screen -x ...
0
votes
1answer
148 views

Docker attach to curses process

I'm trying to use docker attach to attach to curses-based graphical process: $ docker run --name irssi -it pandrew/irssi irssi When you detach from this process using ^P^Q and reattach with docker ...
0
votes
1answer
414 views

Unable to redirect STDOUT in a remote screen session via SSH

I would like to execute a long-running command via SSH/screen and have the output redirected to a file. I'm able to run the command fine (similar to this question), but the output never shows up. ...
5
votes
1answer
318 views

screen causes “tail -F | grep” to echo unmatched lines

This is Ubuntu (3.13.0-29-generic #53), trying to do a simple bash script to monitor a log file for matching lines. If I do the following, there is no output in the bash shell except for matches, ...
1
vote
1answer
177 views

No hangup signal by default [duplicate]

I have a server running ubuntu server. It is behind a proxy...I don't know if that makes a difference. But I have found that a couple of processes I've tried, get terminated when I log out of the SSH ...
3
votes
1answer
69 views

screen in screen, detach only last one

I have strange issue on my hands. I have opened (GNU) screen for one serial console and in that same console I have opened another screen to another serial console. It was working but I am now ...
0
votes
1answer
176 views

GNU screen 4.2.1 in xterm: hardstatus in window title disappears

The only 2 lines in my ~/.screenrc are: termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' hardstatus string "%h [screen %n%?: %t%?]" In GNU screen version 4.0.3 that I used previously, ...
7
votes
6answers
10k views

Can't get detached screen to resume

I use putty and have an unreliable wireless connection, so I use screen to keep my work going. Often I'll get disconnected, and then I can't reattach my screen. I'll run screen -D -RR and it will just ...
4
votes
2answers
1k views

What's the difference between hardstatus and caption in GNU Screen?

I've started to play with GNU Screen setting. What's the difference between hardstatus and caption in GNU Screen? hardstatus seems to appear at the bottom on the Terminal, but I don't even know what ...