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

Python Fabric: How to execute command in screen session

I am doing following: with settings(host_string=h['server'].rstrip('\n').strip(), warn_only=True): # run("hostname -f") with cd('path/folder'): # Check for Screen session, if none, create one…
Volatil3
  • 14,253
  • 38
  • 134
  • 263
0
votes
1 answer

screen disable "detached" message

I'm using screen to manage multiple "screens" with usage of some python scripts. I'm using this library to manage screen using python code. How to disable the output: [remote detached from 52689.demo_session] [52689.demo_session detached.] I get…
kreishna
  • 31
  • 5
0
votes
1 answer

vi editor is overwriting the console commands history

When using the linux screen, vi editor overwrites all console information. I expect vi to open the file as a separate window and on exit, it has to return back to console. My .screenrc is, ################ # # default windows # screen -t screen1…
shim_mang
  • 323
  • 4
  • 17
0
votes
1 answer

Creating screen and execute command in it without actually open that screen

Is it possible to create a screen and execute a command in it without actually open it? What I need to perform is the following: Open a screen (screen -S screen_name) Execute command in that screen At the moment I need to manually create the…
Ivanovich
  • 9
  • 4
0
votes
1 answer

Kill attached screen session with numbers as session name

I have this session for example 7540.27535 (Detached) and the 27535 is the session name, so it's not the id but the session name. What I want is to kill the sessions with the name 27535, How can I do that ? I have multiple sessions with the…
usersubuser
  • 117
  • 13
0
votes
1 answer

GNU screen: keybindings won't work

I'm trying to bind the space key to windowlist in GNU screen, i.e. bind ' ' windowlist -b so that C-a (space) does what C-a " normally does. However, when I place this in my ~/.screenrc it simply does nothing. That is, C-a (space) retains the "next…
zjw518
  • 13
  • 6
0
votes
1 answer

GNU Screen session responsive to attach/retach commands, nothing else visible

Have a problem with screen where I can detach and attach a given screen session with a bunch of processes in it but there's nothing visible when reattached. I have an emacs session running in this screen with a bunch of R processes running in it.…
0
votes
2 answers

Run screen through crontab

I have an issue about how to run screen through crontab, I made a script which check if a previous session is running and if not restart a screen. cf screenshots below crontab restard_td.sh When I run the script manually it's works fine, by cron, i…
0
votes
1 answer

Shell script to restart django runserver inside the screen

how to restart django runserver using a shell script? i ran the django server inside a screen. this is my shell script restartpython.sh: killall -9 python screen -r sleep 5 exec python manage.py runserver 0.0.0.0:8000 ctrl+a d # how to make…
Krisnadi
  • 641
  • 1
  • 10
  • 23
0
votes
1 answer

Shell-Script with multiple screen sessions does nothing

I Have a Problem with the following Shell-Script which should start two screen sessions. When I execute it there is simply nothing happening. Does anybody have a clue why this is the case? My System is the newest raspbian. #!/bin/sh screen -Smd…
antumin
  • 167
  • 1
  • 12
0
votes
1 answer

Sending input to a windows application from outside

In Linux, I can start a program in a GNU screen session and then send input to it from outside using screen's stuff command, which sends characters exactly as if I had typed them in the program. I'm new to developing in Windows and I was wondering…
Milad
  • 4,901
  • 5
  • 32
  • 43
0
votes
1 answer

Create tasks on Laravel and Ubuntu server using Screen

It's possible to add the task from HTTP request with Laravel and processing with ubuntu server using screen session, here some example. I have a Website with processing feature like decode whole of encoded string and take up to 24hours to process…
0
votes
1 answer

GNU screen freeze session if SSH is not connected

I have a dedicated server (Inmotion) running a Java XMPP server through a screen session to keep it alive. Sometimes, after a long period, the execution of this Java XMPP server freeze and then when I connect to the SSH and reattach the screen…
Santiago Fermín
  • 265
  • 1
  • 2
  • 9
0
votes
1 answer

phpseclib and screen not working

If I use phpseclib to continue a screen it does not work the way I want to. If I use: login('loginname', 'password')) { exit('Login Failed'); } echo…
Paul de Koning
  • 422
  • 1
  • 5
  • 16
0
votes
1 answer

Linux 'screen' will not read from disk

I am running a simple multithreaded producer/consumer framework in Java to do some processing. The framework reads from some files, process the data, and writes some results back to disk. My problem is the following: Because of (very) high memory…
user1938803
  • 189
  • 2
  • 10