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
2 answers

How to bind multiple keys in gnu screen, specifically using arrow keys

First off, I'm using Opensuse 13.2 64-bit and also Arch_Linux 64-bit Can't get the bind to work for either of them (well, the binds that I want), but I'm mostly focused on the Arch_Linux. Also, using openbox wm, xfce4-terminal. ( in opensuse…
Craig
  • 177
  • 2
  • 12
0
votes
1 answer

How can I change default directory in screen when I have defshell set to bash?

I know that you can usually use chdir in your screenrc file to change directory before running a screen command. However, this doesn't work for me if I have defshell -bash set. Here's a sample file that doesn't work: defshell -bash …
jonathanpdx
  • 338
  • 3
  • 6
0
votes
2 answers

Why is there only one SCREEN process in nested screen session?

I create 4 nested screen sessions , but there are only one SCREEN process: [root@localhost ~]# ps -ef | grep SCREEN root 4852 4851 0 02:57 ? 00:00:00 SCREEN root 4915 4900 0 02:58 pts/4 00:00:00 grep --color=auto…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
0
votes
1 answer

Quitting SCREEN session does not end running programs

I have a simple script that tries to kill a running screen session, wait 5 seconds, then restart it. Trying to put this on a cron job, but having a weird issue. Here is the script: #!/bin/bash screen -S test -X quit sleep 5 screen -dmS text node…
lerxstrulz
  • 143
  • 1
  • 8
0
votes
0 answers

Running sh script from php inside screen

That one is a strange one and i'm not sure where to look for answers. I have a scriptname.sh script which i manually run from a manually launched screen session. This scriptname.sh invokes a separate PHP script, which in turn executes a command like…
Wojtek Zeglin
  • 106
  • 1
  • 10
0
votes
2 answers

Run commands in screen after creating one per bash

I have the following bash file which should create a screen, go to a directory and then start a node script: screen -S shared // 1 cd /home/nodejsapp // 2 node start.js app.js // 3 The problem is, after executing 1, I indeed see the screen…
Luca Steeb
  • 1,795
  • 4
  • 23
  • 44
0
votes
1 answer

How can I start a screen session using a specific config file?

I would like to be able to start a screen session using a certain config file. I know that I can use -c and then the file path to the config file but if I do that, then the sh script I am using does not work. You can see the sh script…
Kian Cross
  • 1,818
  • 2
  • 21
  • 41
0
votes
1 answer

How do I execute a php file on the server using the screen command?

I was looking at this post which is where I got the idea to use screens to execute my php scripts on the server: Running a PHP script completely on server side I was successfully able to execute a php script using: screen php ./file.php However,…
Kacy
  • 3,330
  • 4
  • 29
  • 57
0
votes
0 answers

run a screen after reboot

i tried to google but had no luck perhaps because i am not sure on the terms to look for. basically im trying to auto run a screen after the system reboots. i tried crontab but it seems that i cannot execute the jar file unless im in the…
droopie
  • 441
  • 3
  • 12
0
votes
1 answer

Change Ctrl-D shortcut in GNU-Screen

Can someone please help me change a shortcut in GNU Screen. I bound my Ctrl-D for escape, and now when I go into copy mode U is moving a screen up, however D isn't scrolling a page down. I can't seem to find information on how to change that…
Neekoy
  • 2,325
  • 5
  • 29
  • 48
0
votes
2 answers

Is there a way to code Ctrl+a :multiuser on when using screen?

I want to run a script that sets up a screen session and then automatically makes it into a multi-user and also adds one of the users on my system. So far, I have a script that creates the screen session, but I have to manually make it into a…
Kian Cross
  • 1,818
  • 2
  • 21
  • 41
0
votes
0 answers

running screen command from a c program

Here is the part of code I have written to stuff 0 to a screen session open in one of my Ubuntu terminal tabs. char command[60]; strcpy( command, "screen -S 8305.pts-1.MYUb -X stuff $'0'" ); system(command); It gets compiled fine with only a…
user3684042
  • 651
  • 2
  • 6
  • 16
0
votes
2 answers

GNU screen: no output returned

When i re-attach to an existing/running window, the screen doesn't seem to be responding. I can key in the input but no output displayed on the screen. When i do screen -ls, the screen and the socket is still there. Anyone has any idea what could…
0
votes
1 answer

Linux "screen" does not write results

I have an Ubuntu system running on a remote computer that I use for computations. On other machines whenever I want to run some time-consuming program I type: screen and execute my program in the resulting screen, say: ./myprogram input.xml The…
user1938803
  • 189
  • 2
  • 10
0
votes
1 answer

How do I start multiple screens with custom commands for each one?

I want to start multiple screens using the mac/linux command screen and have each screen execute my .bashrc and then run a series of aliases/functions from that .bashrc. I have tried adding various commands in my .screenrc as shown below: screen -t…
user674669
  • 10,681
  • 15
  • 72
  • 105