screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag /monitors.

learn more… | top users | synonyms (1)

0
votes
1answer
18 views

Execute command in other users' detached screen

On my (ubuntu) server I have a gameserver running in a screen, owned by user_1. The gameserver has an interactive console to send commands to. Would it somehow be possible to execute a script as ...
0
votes
2answers
10 views

Using Screens with a PHP Script

I found an external developer to make me a PHP script to 'snipe' Mineraft usernames. In order for it to operate, I have to start the script from the command line using this: php -f sniper.php > ...
0
votes
1answer
18 views

screen compared to opening virtual consoles

I'm not sure If I have my terminology correct here so please bare with me. When pressing CTRL + ALT + f1-f7 to change virtual terminals, how is this different from using the linux command line tool ...
1
vote
1answer
13 views

load all screen sessions in split screen

I had 3 sessions open while using screen in split screen mode - I thought that using CTRL + A, Q would close the currently active split screen session, instead (i think) it just backgrounded all of ...
1
vote
0answers
19 views

Running screen inside tmux

I need to run an instance of screen inside tmux because there's a script I need to run that uses a complex .screenrc to run several commands in parallel and monitor them. This works on some of my ...
0
votes
0answers
28 views

How can get the screen command to work properly?

I'm trying to work out how to use the Unix screen command. I'm using Zsh on Mac OS 10.11.3. So far, nothing is working as described. (I don't have enough reputation to link to the tutorial I'm ...
0
votes
0answers
18 views

Getting utf-8 support in screen via ssh

If I ssh from iTerm2 on my macbook to my vps and then run the command screen -r irc, which is running weechat, utf-8 works properly. :) However, I’ve set up an alias for this on my mac: $ alias | ...
0
votes
1answer
18 views

Crontab and screen at reboot

I try to create a cron command that execute a software in a screen during start-up on my Debian. It seems easy by doing this command but it doesn't work (no screen created during start-up): ...
1
vote
2answers
42 views

How to run a program in a screen, redirect all output to a file and detach

Running a command in a screen and detaching is quite simple. screen -S test -d -m echo "output of command that runs forever" However I would also like to pipe all the output to a file for logging, ...
0
votes
1answer
16 views

How to send all keystrokes to a screen session?

I am starting a screen session with screen /dev/ttyACM0 115200. The system I am opening a session to is running Ubuntu, and I would like to pass it Ctrl-Alt-F1. How can I make screen capture those ...
1
vote
0answers
17 views

How to switch to another screen to run git commands while resolving conflicts (blocking command)?

Often times, I work out of a single shell when I run git commands. For example, I will start a merge: $ git merge origin/master If during this merge there are conflicts, git will "block" the shell ...
1
vote
2answers
20 views

Send a message to a “screen” to be received by a device on /dev

My question may looks trivial... But it's because despite of my long experience of linux/unix/osx systems, I found myself lacking some basic notions. I created a little bluetooth/arduino switch to ...
0
votes
0answers
16 views

Remote Desktop to Linux server goes black after idle

I am connecting to a CentOS 6 VNC server with a Windows 7 Client with Remote Desktop. I can connect fine and as long as the console is being used and active everything is fine. If left Idle the ...
0
votes
0answers
16 views

List the GPU utilizations for each screen

How can I list all screens launched with screen along with their GPU utilizations? (screen -ls gives the lists of screens but not their GPU utilization) By GPU utilization of a screen, I mean the sum ...
1
vote
1answer
38 views

How can I use the host's keyboard for a 'remote' SSH session from a tablet computer?

The perhaps slightly odd requirement is this: I have a computer/laptop running Ubuntu I have an iPad from which I can SSH into said laptop sitting right next to it I'd like to use the iPad as an ...
1
vote
0answers
16 views

Dell laptop with two external screens

I have a laptop with Linux Mint Mate and this board graphic: Nvidia-G98M - Frame NVS 160M. I am trying to connect one screen Dell Inc. 15", through the VGA cable, and a Screen Asus 22" through DVI. On ...
0
votes
1answer
38 views

List the CPU utilizations for each screen

How can I list all screens launched with screen along with their CPU utilizations? (screen -ls gives the lists of screens but not their CPU utilization) By CPU utilization of a screen, I mean the sum ...
2
votes
0answers
16 views

Start detached screen session with more than 80 columns?

Does anyone know a way to change the default 80 columns width when starting screen in 'detached' mode (screen -dm) ? Smart curses apps like htop handle resizing when attaching from a wide terminal ...
2
votes
1answer
34 views

Clear to end of line uses the wrong background color in screen

In ZSH prompt expansion, the command %E is supposed to "Clear to end of line." This works. We see it in the grey bar going all the way across. However, if I call "screen", the %E stops working: ...
2
votes
1answer
94 views

How to run a script in a screen on reboot

I want to start a blocking server in a screen on reboot, so that I may access it later. The command screen -d -m /home/dataserv/www/start_production_server.sh works on its own just fine regardless ...
0
votes
0answers
30 views

Using `screen` and PHP's built-in web server

I have a Raspberry Pi set up to run a PHP web application. For reasons that I won't go into right now, my current efforts involve using PHP's build-in web server: $ php -S localhost:8000 To get it ...
1
vote
4answers
46 views

GNU Screen: can not resume the screen from a broken remote session

Sometimes the SSH shell featuring a active screen session to my remote server gets broken (internet line not very stable, for example) with the session still attached. Then I SSH again into the ...
0
votes
0answers
52 views

screen fails with “WriteMessage: Bad file descriptor”

I have screen session "main", started in /dev/ttySAC0 and sh, started in /dev/ttySAC0 (outside screen session) with input, output and error streams, redirected to pseudoterminal /dev/pts/1. When I ...
2
votes
3answers
38 views

Logic to detect if a GNU screen is running

For a project I am developing I would like to detect if a screen is running as the current user, attached or detached. I would like an approach that uses the minimal number of processes and will be ...
3
votes
1answer
63 views

How to make a comprehensive set of possibilities for defining GNU-screen “command characters”?

I want to somehow generate a comprehensive "menu" of all possible ways to set up the GNU-screen "command characters" for a standard, off-the-shelf "US keyboard" and a specific terminal emulator, say ...
1
vote
2answers
54 views

screen process in capitals

I've noticed that when running screen the process identified with it actually shows up in capitals. Linux Debian Wheezy. Here an example with me ssh'in into a machine, running screen -S test and ...
1
vote
1answer
20 views

Screen creation not working on crontab

I have a problem with one of my VPSs, in the main one, the command screen -dmS SCREEN_NAME node DIRECTORY (Create a screen without joining it with the command "node DIRECTORY") works normally, in ...
1
vote
3answers
56 views

How to search for a suitable “command character” for GNU-screen?

I'm having a hard time finding a "command character" for GNU-screen that does not collide with some key combination that I already use. Through Emacs (and org-mode, and my regular shell, etc.), ...
2
votes
2answers
61 views

Screen - weird behavior after exiting Vim

I am facing problems with my configuring screen. My screen.rc is very simple and looks like this: altscreen on termcapinfo xterm ti@:te@ I wanted to configure screen to have the same behavior as ...
0
votes
0answers
21 views

Setting tmux session title in zsh

There was a similar question about screen regarding this here, but I was unable to get this working with tmux. From what I understood printing a string with prepended with \033k and appended with ...
0
votes
1answer
43 views

Init script for a daemon to run screens on CentOS

I have a question concerning a init.d script. Currently I have a init script that launches a custom daemon as follows: sudo -u "$user" $cmd >> "$stdout_log" 2>> "$stderr_log" & ...
0
votes
0answers
22 views

How to set unlisted monitor resolution and put it to work in Fadora

Some information about the system is-: lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09) cat /etc/issue Fedora ...
1
vote
2answers
94 views

Execute command on remote screen

On a remote server I have multiple screens open and I use each one for different purpose. For example the screen with the ID 'build' it is being used to compile some programs. I can open that screen ...
0
votes
1answer
23 views

Imagemagick import screenshot in Debian of a launched app

I'd like to launch Iceweasel and then take a screenshot. When I simply try to wait and take it, it works fine sleep 10;import -window root root/scr/scr.png however when I first launch the browser, ...
2
votes
1answer
30 views

Screen command for buffer

I want to read the contents of the file into the paste buffer and stdout it to the screen. I did this: screen -X readbuf /home/nitro/file|screen -X writebuf|cat /tmp/screen-exchange but the cat ...
2
votes
2answers
84 views

Why doesn't SIGSTOP work inside screen session?

Consider the following script: #!/bin/bash OFILE='log' echo 'ok' > ${OFILE} kill -SIGSTOP $$ echo 'after stop' > ${OFILE} In an interactive shell the script is stopped and the output is ok. ...
2
votes
1answer
50 views

GNU Screen: How to enable or disable logging while screen is already attached?

Suppose I have whole bunch of processes running under screen, but I forgot to execute screen -L initially. Is it possible to enable and disable the logging of a currently attached screen without ...
2
votes
2answers
56 views

Can't resume screen, says I am already attached?

I am working on a remote Debian Jessie server. I have started a screen session, started running a script, then been disconnected by a network timeout. Now I have logged in again and want to resume ...
1
vote
1answer
83 views

“No more PTYs” when starting screen as non root-user

Whenever I try to start a screen-session as a non-root-user I get "No more PTYs." as a response. Same command in the same directory as root works properly. I tried the solution from this post but it ...
1
vote
0answers
34 views

Starting a minecraft server using screen doesn´t work properly

I'm trying to run a minecraft server on my vServer. Everything works properly when I start the server like this: java -Xmx1G -Xms1G -jar minecraft_server.jar nogui But I want the server to run in ...
0
votes
1answer
24 views

Additonal layer of abstraction for GNU screen region management?

Here is my use case: I have maybe 10 or so windows open in screen. I want to be able to split my terminal into regions and assign windows to regions. So far, so good. However, I want to be able to ...
0
votes
0answers
47 views

screen resolution woes on RH 7 running Xorg, which has no Xconfigurator (which seems only for XFree86)

I have a dell precision m6800 laptop that is experiencing stubborn low screen resolution problems with red hat 7. The funny thing is I installed RH 7 with no BIOS raid configured and I got the ...
1
vote
0answers
28 views

SSH Tasks to Different Remotes with Control over them

I need to ssh different runs of a program to different compute nodes, namely: ssh compute-1 'cd dir; ./program input1;' ssh compute-2 'cd dir; ./program input2;' ssh compute-3 ... I also need to: ...
0
votes
2answers
57 views

put a running program into background like screen

There is a program that takes unexpectedly long to run. Before I started it, I did not start screen. So I dont know how to detach the process now. Is there any way to keep this process running on ...
2
votes
1answer
35 views

get available screen size after considering space used by the menu bar and launcher

I'm using Ubuntu 14.04. I know how to get my screen resolution using xrandr or xdpyinfo. But with these tools I get the maximum available desktop size .... I have a menu bar at the top that takes ...
4
votes
1answer
62 views

How to find how many windows are opened in GNU screen?

I am trying to automate my work flow. I have a script that opens individual window in screen for each IP in a list. Imagine setupscreen.sh <IP1> <IP2> .... After all windows are open, each ...
0
votes
1answer
70 views

Timestamp each line in GNU Screen

When using GNU Screen as a serial port terminal, is there a way to show a timestamp on each line as it is sent/received?
-1
votes
1answer
65 views

Matlab crashes after screen session disconnect and reconnect

Please forgive the cross-post from matlab answers. This received no response over there. I'll try to go into a bit more detail with this post. ...
0
votes
1answer
33 views

Using keystrokes in Linux Terminal [closed]

How I can simulate keyboard input, something like CTRL+A+D, in linux terminal? Is there any command for this? Reason I'm asking this is that I need some other way to detach from my screen session ...
0
votes
0answers
11 views

Update caption once a screen session has started

If I update my caption in ~/.screenrc and have an existing screen session is there any way to re-parse it without closing all shells and starting a new screen session?