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

0
votes
1answer
12 views

how can i tell if screen 4.0.3 is multi-threaded?

I got screen 4.0.3 running on my redhat 5.9 VM. I am trying to figure out ways to optimize the VM performance. I read that for single threaded applications, it is better to not give the VM too many ...
0
votes
0answers
14 views

Every process I start, apart from nginx, dies after a few hours on AWS EC2 Ubuntu instance

I'm new to ubuntu (coming from mac) and I'm trying to run a couple of java servers and a node server on an ubuntu Amazon EC2 instance. I run each server in its own screen session, and everything ...
0
votes
0answers
6 views

screenlog in multiple files [migrated]

i want to log multiple output of serial lines with screen. I use the following: screen -L /dev/ttyUSB0 115200 screen -L /dev/ttyUSB0 115200 Screen logs the output in ONE single file screenlog.0 ...
1
vote
1answer
25 views

expect script running screen stops working when run by cron

I hope this question is OK for this forum. I have a device, a modem. I talk to this modem with the linux program "screen" as a terminal program. I invoke it like this "/usr/bin/screen /dev/tty6". I ...
1
vote
1answer
25 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" ...
0
votes
1answer
27 views

how to use screen with crontab?

I have a screen task running with node (nodemon) I would like to restart nodemon at midinght every day What I do manually is under SSH screen -r myscreen I TYPE "rs" manually I type CTRL+A+D to ...
-2
votes
0answers
21 views

How to run a script on a remote machine using the screen command and ssh? [migrated]

I'd like to run on a list of servers and run remotely a script while using screen. Manually, I'd do: screen -RD ./run_script and manually remotely I'd do: ssh root@server "screen -RD && ...
-1
votes
1answer
50 views

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

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
5k 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
33 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
37 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 ...
12
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
67 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 ...
25
votes
3answers
16k 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
15k views

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
1
vote
1answer
113 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 ...
16
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
31 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]\$ ...
21
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
46 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 ...
77
votes
13answers
82k 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
212 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
14k 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 ...
66
votes
7answers
27k 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
99 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
45 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
187 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
26k 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
266 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
153 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
42 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
258 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
330 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
198 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
6k 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
52 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 ...
17
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
158 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
477 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
327 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, ...