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 enter and leave an existing screen through script?

I'm fairly new with Linux shell scripting but have several years experience using Linux(non-hardcore). There is an application running on my server(accessing it through SSH/putty) which is a console one. In order to ensure that it will run even even…
eSPiYa
  • 882
  • 1
  • 12
  • 29
0
votes
2 answers

Switch to last window in GNU Screen

I know how to list out the available windows in Screen using C-a " and/or C-a ', but how do you specify that you want to go to the very last screen without having to explicitly say so. Like what I'm looking for is something like this: C-a…
Alexej Magura
  • 4,833
  • 3
  • 26
  • 40
0
votes
2 answers

How to get into screen session?

I've started several sessions in screen. Now I want to get into one of them. I've read manual about screen and since that I could see screen sessions list via screen -list So, now I know what session I want to get into, because I know its creation…
sbeliakov
  • 2,169
  • 1
  • 20
  • 37
0
votes
1 answer

Get a return value from a screen'd command

I'm running a process in a screen (on Ubuntu 13.10, if it matters). I can execute a command within that screen with: screen -p 0 -X eval 'stuff \"$command\"\015' I'm not 100% sure what this command is doing to begin with, though it's functioning…
AndyMac
  • 820
  • 6
  • 11
0
votes
1 answer

Execute screen command returning `Cannot make directory '/var/run/screen': File exists`

I've no idea what is happening. I can run any other shell command through the exec() command and it works fine. It's clearly something to do with permissions somewhere, but I'm unsure what. I've tried this on many different servers and some of them…
Jack B
  • 547
  • 4
  • 22
0
votes
1 answer

how to set -A flag in screenrc

The screen man says ‘-A’ Adapt the sizes of all windows to the size of the display. By default, screen may try to restore its old window sizes when attaching to resizable terminals (those with ‘WS’ in their descriptions, e.g. suncmd or…
0
votes
1 answer

crontab need user to login once before it runs the script

I'm trying to schedule a game server restart and vps restart at a time. I made 3 cron entries (screen terminate, vps reboot, game server start) crontab entry for root user 30 6 * * * /sbin/reboot crontab entry for user1 29 6 * * * sleep 48; screen…
user2832854
  • 1
  • 1
  • 2
0
votes
1 answer

Should do I use screen or tmux commands?

I would like to know the main differences between tmux and screen commands to manage my machine. My problem is that I have to run a process that I will launch be SSH, but that have to be alive all the day.
EnriMR
  • 3,924
  • 5
  • 39
  • 59
0
votes
1 answer

open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just starts minecraft in a screen container in the…
0
votes
2 answers

How to attach ttyS to screen and capture it simultaneously

For capturing ssh sessions I use "script" command: "script -c 'ssh user@host' outfile". But I have no idea how to capture sessions to remote hosts, that connected over com(serial) port. screen script -c 'screen /dev/ttyS0 57600' file ends…
Yuriy Nazarov
  • 1,536
  • 1
  • 13
  • 16
0
votes
1 answer

How to increase the screen log size in GNU Screen?

Is there a way to increase the screen log size? I cannot save all my history. $ screen -S creed1 $ command1 output command 1... (50 lines) $ command2 output command 2... (200 lines) $ command3 output command 3... (60 lines) $ command4 output command…
crsuarezf
  • 1,201
  • 3
  • 18
  • 33
0
votes
3 answers

system loads in GNU screen's hardstatus line

I use screen a lot on my Linux. I wanted to change the hardstatus line a bit. I want to add CPU and Memory usage information to the line but I don't know how. after some searches in Google all I could find was %l option to add system loads. my line…
mewais
  • 1,265
  • 3
  • 25
  • 42
0
votes
1 answer

Called bashscript doesn't start up GNU screen session

I have a problem with a backup script which is supposed to call a bash starting/stopping script, in which a "daemon" (via GNU screen) is managed. For the moment my python backup script is called via cron. Within the launch.sh script there is a…
Nerade
  • 61
  • 1
  • 3
0
votes
3 answers

Make output of cli based PHP script viewable from web without piping to a file?

I have a command line PHP script that runs constantly (infinite loop) on my server in a 'screen' session. The PHP script outputs various lines of data using echo. What I would like to do is create a PHP web script to interface the command line…
James
  • 656
  • 2
  • 10
  • 24
0
votes
2 answers

screen command: C-a C-\ does not work

I'm on a mac, and I also tried on Linux too, but the command C-a C-\ does not work for me. It's supposed to kill all windows and terminate screen. C-a C-\ (quit) Kill all windows and terminate screen. Is there another way to kill it? I…
chovy
  • 72,281
  • 52
  • 227
  • 295