Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Before using this tag, read the "Which site is more appropriate?" section of the tag wiki.

screen (GNU Screen) is used to create virtual terminals, which run by their own when not under direct user control. This is especially useful while working with a remote system, when a disconnect can occur at any moment. In this case, the screen session will continue to execute and you may reattach a running screen later.

Screen also allows you to execute multiple commands in a single terminal without losing control over them.

One additional trick is that a single virtual screen can be used by several users simultaneously, allowing them to guide and observe actions of each other.

Which site is more appropriate?

If you intend to tag your question with this tag, consider if the question is more suitable for other Stack Exchange sites:

1022 questions
0
votes
1 answer

How to make the screen session restart the program by itself if the program crashes? (Running on DigitalOcean)

I'm running a Python script in a screen session on Digital Ocean. If it crashes, how do I make it automatically restart again?
user4414636
0
votes
1 answer

Printing GNU-screen results in a file

I am trying to use the screen command on linux. I need to print the stdout that I get in a normall shell command to a separate file after a detached session is done. How can I do so? In particular, I am trying to run Weka experiments in screen and I…
TrnKh
  • 758
  • 1
  • 7
  • 13
0
votes
2 answers

Pass Variables inside Screen Stuff

I have this code:
0
votes
1 answer

Currently running WGETs

I'm having a hard time using knowing if it is possible to have a clue on my download speed using WGET. To run my gets I use the following command : wget -c -b http://mylink.com So it runs in background BUT I can still have access to its PID. What I…
Cehm
  • 1,502
  • 1
  • 12
  • 14
0
votes
0 answers

Vim times out (Killed) in screen on CentOS server

I tend to work in screen and have several files open in vim. I control-z and then use fg to move between them. After the recent update, idle vim instances "time out" and are killed. My SSH connection and screen are still connected. This breaks up…
0
votes
1 answer

Screen command for buffer

I want to read the contents of the file into the buffer and stdout it to the screen. I did this:screen -X readbuf /home/nitro/file|screen -X writebuf|cat /tmp/screen-exchangebut cat command showed me screen-exchange file with the previous result of…
fuser
  • 283
  • 2
  • 7
  • 18
0
votes
1 answer

How to gain SSH access from an AWS instance to another without private key?

I have an SSH keypair: private lives on my local Mac, public lives on several AWS cloud machines. From my Mac, I can SSH to a cloud instance, call it "deploy server". From there, I need to deploy my application to several instances (I cannot deploy…
G. Joe
  • 9
  • 2
0
votes
1 answer

Executing screen within a script fails when script is launched with PHP

I am using php to execute a script on my server. PHP: exec("screen -dmS testingscreen /home/username/otherfolder/test.sh") For a while I was unable to do this till I did some digging and found a few things about how to do this. I also found some…
ZizzyDizzyMC
  • 73
  • 2
  • 9
0
votes
1 answer

using serial port and OSX screen to do terminal GUI

I'd like to upgrade the output from my embedded C projects that sends debug information over the serial port using extended characters, like frame edges and corners (like from here ). I'm on OSX and using screen. I have found a library that…
David
  • 21
  • 5
0
votes
1 answer

Ubuntu, how to detach process in a server that opens a window?

Can you help me with this problem? I want to detach a process I start in a server. This process is an application with one window/widget (similar to gedit, kate...). I access to the server by means of ssh -X, and run the binary process in a…
james.G
  • 3
  • 1
0
votes
1 answer

dscl doesn't work from inside re-attached screen

I am on Mac OS X 10.5.8. I am not sure exactly when this started happening, but I find that when I re-attach to a screen session that was started from an ssh session, anything relying on dscl (directory services), or the underlying getent stuff,…
apinstein
  • 5,105
  • 1
  • 23
  • 22
0
votes
1 answer

How to attach to ghost screen session?

I've got a screen session running for the user heechan on my linux server: heechan@vps3712:~$ ls -laR /var/run/screen/ /var/run/screen/: total 0 drwxrwxr-x 5 root utmp 100 Aug 31 08:22 . drwxr-xr-x 18 root root 640 Sep 18 05:24…
kramer65
  • 50,427
  • 120
  • 308
  • 488
0
votes
1 answer

command in shell buffer in emacs in gnu screen

The excellent answer to the question How do I define an Emacs List function to spawn a shell buffer with a particular command executed in the shell weirdly does not work in a Gnu "screen" session. In the context of a screen command, instead of the…
0
votes
2 answers

openstack devstack - Unable to stop service using screen

I need to stop the nova services which is running in openstack devstack. So as per the previous guidance I have tried using Screen for the same. Actually I can see that services currently running were getting displayed. When I try to stop the same…
Murali
  • 1,084
  • 1
  • 11
  • 28
0
votes
0 answers

Docker + GNU Screen lags

Struggling with GNU Screen inside docker environment. Near all utils are working with glitches. Top, mc or nano can show this kind of problem: https://i.stack.imgur.com/RBuG8.png Lines are shifted and destructed. Is it possible to overcome? I'm…