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
0answers
13 views

How to recover a screen session?

I'm running a screen session and it seems it hung up somehow. 0 ✓ user@hoster ~ $ screen -ls There are screens on: 30418.pts-2.hoster (Detached) 1 Socket in /run/screens/S-user. However, when I ...
2
votes
2answers
3k views

GNU screen: ‘Cannot open your terminal '/dev/pts/3' - please check’

There is daemon in my system, it runs inside of a screen instance and all that is done from an unpriveleged user. I’ve added myself to special sudo group allowing me to run screen from this user, but ...
0
votes
1answer
12 views

Need to send ^C to CLI using GNU screen over serial interface (/dev/rfcomm0)

I am connected to an embedded Linux device using GNU screen. The connection is via /dev/rfcomm0 which is a Bluetooth serial interface. I frequently forget to put an & after a CLI command, which ...
0
votes
0answers
13 views

Laptop is on then screen goes black a few seconds later [migrated]

I am not really sure whether this is the right place to post my question but it was the most relevant category. I opened (deassembled) my laptop for periodic cleaning but after reassembling it, when ...
1
vote
3answers
482 views

using screen in another user with su

So, if i do this: su -c 'screen -dmS screenname script to run' - user to run as It won't work. The screen command is working if excecuted from root, so there is no problem there. If I do: su - ...
1
vote
1answer
1k 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 ...
0
votes
0answers
10 views

add ability for users in group to see and attach to screen sessions - Debian Wheezy

I'm trying to add the ability for users in a group to be able to list and attach to eachothers screen sessions. I've been pretty unsuccessful so far. I know about multiuser but I'm kind of throwing ...
3
votes
3answers
1k views

How to use cursor keys in vi under screen?

If you run vi/vim in screen, when you press a cursor in insert mode, you get a new line + a character, which is a pain. How can I configure vim to move around instead?
94
votes
14answers
114k 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 ...
1
vote
1answer
25 views

Run command in screen when LSB initscript stopped

I'm trying to get a Bukkit server to run inside a screen as a service, started from an LSB script but I cant get it to stop correctly. What I essentially want it to do is reattach the screen and send ...
2
votes
1answer
34 views

Owner of screen session

When I logged in a server and issue a 'screen -list' commands it gives the following result - 31917.pts-5.office (Detached) 31844.pts-0.office (Detached) But it is sometimes important ...
21
votes
8answers
16k 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 ...
0
votes
0answers
22 views

Linux screen(or java) with different date of system

I having a problem with screen on Centos 7. The system time is correct but on screen application theres a diference of 3 hours. The system output(correct): [root@Server ~]# date Ter Fev 23 01:27:11 ...
5
votes
4answers
3k views

GNU screen loses (parts of) command histories

I use GNU screen with 5 different sessions, each of which stores its own command history. But often I don't find a command in the history, although I'm sure I've used it exactly in the session I'm ...
5
votes
4answers
3k views

GNU screen display + from putty

Does anyone here know how to get the +-*/ on the numerical keypad to work in GNU screen from putty? Numbers work fine but not the operators. The / seems to be bind to rename the current shell or ...
0
votes
2answers
907 views

Determine if tmux has a detached session

Is there a way to check programatically that I have a tmux screen session running? I'd love to be able to write a script that checked for the presence of a tmux session and attach it, or if no session ...
0
votes
0answers
71 views

CentOS 7 screen session has been terminated unexpectedly

I've default CentOS7 server without any additional software except of WildFly10 and I'm the only user there. I'd run WildFly using screen command and logged out from the server until it became ...
3
votes
9answers
40k 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. ...
0
votes
1answer
32 views

Why putty takes time to deliver “ctrl +c” signals to process which are outputting heavily on stdout?

Whenever process is printing heavily on the stdout, if I try to kill process via sending signal "ctrl + c", the process does not stop immediately. But if I am redirecting output in the file, process ...
2
votes
2answers
561 views

freeze and thaw tmux and/or terminal sessions?

I would like to be able to freeze and thaw tmux sessions. That is, to take a complex set of session state, persist it, and bring it back from some persistent store later. Essentially, git stash for ...
15
votes
3answers
1k views

Cannot reattach to a screen session after SSH connection was dropped

I have previously reattached to a long-running screen session with screen -dr control. However, sometimes this command will not reattach to the screen and instead hang forever (10+ minutes after which ...
-2
votes
1answer
54 views

Running a MTR in Screen through SSH

I recently was introduced to a command that will ssh in our proxy server, then ssh into a network: ssh myname@proxy -t "host $IP" I tried modifying the command as follows to run MTR against our SIP ...
124
votes
3answers
74k views

Moving an already-running process to Screen

My office job routinely sees me connected to a Linux box via VNC. Sometimes I start a remote job on the console, and realize later that it runs much longer than expected. (Should have started that ...
10
votes
3answers
15k views

Start Unix screen, Run command, Detach [duplicate]

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 ...
8
votes
7answers
13k 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 ...
13
votes
6answers
18k views

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

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
1answer
909 views

How can I force gnu screen to flush its logfile?

I am using screen like this: screen -L -dm -S session1 -c "./game_server -options" to wrap around game servers. I log their output to a file, and can send them input with: screen -r session1 -p0 -...
210
votes
11answers
66k views

Can I nohup/screen an already-started process?

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in ...
0
votes
1answer
79 views

Start multiple rsync sessions

I want to start multiple rsync sesssions via screen in detached mode? Is it possible? I need to run rsync script for each file in folder. screen -t -d sshpass -p 123456 rsync5 rsync -avzP /home/...
0
votes
1answer
39 views

Resuming detached “screen” leads to blank screen

Suddenly I'm no longer able to resume screens I have running on a remote machine. I've never had this happen in a few years of running this machine. I don't know that it's connected but I did run yum ...
1
vote
0answers
113 views

Ubuntu Allow users access to roots “screen” command, also restrict which screens they can attach to

I'm trying to allow a user to connect to the screens that the root user has. When another user does "screen -ls", it shows "No Sockets found in /var/run/screen/S-USERNAMEHERE". In addition to this, ...
1
vote
4answers
1k views

Linux: Connect to another a terminal session

I can use screen or tmux to connect to other terminal sessions, or to share them. But this work only when we first know we will use them. As root can access everything, is there a way to do the same ...
0
votes
1answer
19 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 ...
1
vote
0answers
33 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 ...
1
vote
1answer
333 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
44 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
85 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 ...
-1
votes
1answer
105 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 [google-...
11
votes
5answers
15k 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 ...
2
votes
3answers
7k 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
51 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
237 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 ...
29
votes
3answers
27k 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 ...
57
votes
3answers
19k views

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
1
vote
1answer
249 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 /var/www/...
2
votes
1answer
99 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 ...
22
votes
6answers
7k 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
77 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 -...
12
votes
4answers
4k 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]\$ ...
24
votes
2answers
8k 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 ...