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)

-2
votes
1answer
39 views

Install a package from SSH

This is my first experience with Linux. I want to install a package (named screen) and I have access to a SSH login which I use putty on Windows to do so. Is there a way to install screen from putty ...
0
votes
0answers
21 views

Automatically change screen resolution when the laptop is plugged on the docking station

My setup: Dell e4200 laptop with debian, 13" screen @ 1280 x 800 Dell docking station with 24" screen running @ 1920x1080 The problem whenever I use my laptop off the docking station it works ...
1
vote
1answer
33 views

How do I make my script launch the screen as non-root

I'm running Minecraft, starting it automatically from from /etc/rc.local. I have that run /home/kent-server/mc/spigot.sh and inside that is screen -dms minecraft Java -jar -Xmx5120M -Xms5120M ...
2
votes
1answer
26 views

screen list presettings

Commonly I'm working with a single screen with many windowlist in it. ex: $ screen -r work [ctrl]+[A] , ["] Num Name ...
1
vote
4answers
57 views

How to force `screen` to clear the terminal after commands like `htop`

I have recently started using screen in order to be able to split my terminal vertically and horizontally. However, it does not clear the terminal automatically. For example, when I open a file using ...
1
vote
2answers
27 views

Jumbled interface due to reading binary files in screen

I'm using bash and screen and catted /dev/sda1. This potentially outputted escape codes that changed screen's state. The closest question I found is Why using cat on binary files messed up the ...
5
votes
2answers
97 views

How can I use the output of a command without using the mouse?

Imagine you issued a find command and now you want to use one line of the resulting output as an argument. $ find .. fileA fileB $ vi <CURSOR> # now do what to achive: $ vi fileB ...
-1
votes
1answer
16 views

Why %H%M%S is not working in .screenrc?

According to this answer, I can rename logfile of screen with date to avoid logfile appending problem But %c used in that answer contains a colon, like 19:00. Since I have to sync files with windows, ...
1
vote
1answer
19 views

Is there a difference between nohup and nohup in a screen?

I am currently running mathematica on a Linux cluster, I want the job running stably even if I log out. So I use nohup. However, I found sometimes nohup terminates without any sign (I can't see any ...
1
vote
1answer
21 views

how to force `screen -L` to overwrite log?

I want to run some long calculation jobs in the background. I choose screen. However I found screen didn't accpet redirection. for example screen -dmS name ls>ls.dat won't generate ls.dat. ...
1
vote
3answers
25 views

Do I really need -dmS option in screen to run background job stably even log out?

I saw many place introduce screen to run background job stably even log out. They use sreen -dmS name According to screen -h, this option means -dmS name Start as daemon: Screen session in ...
1
vote
1answer
37 views

cannot get screen command to execute code containing DISPLAY=:0

I am trying to ssh into a remote machine and run a shell script, which opens a GUI. I want the GUI to open on the remote machine and remain open (so I am using DISPLAY=:0 nohup). I tried: ssh -t ...
0
votes
0answers
36 views

cat tty freezes the system while I can observe tty through screen

So I have been subject to this weird behaviour. A few days ago I could read my GPS data on Beaglebone Black (latest Debian) on ttyO4 using cat /dev/ttyO4 But since yesterday whenever I try this ...
0
votes
1answer
26 views

Screen stuff execution delay

I need to press space in two windows at least almost simultaneously to debug my own version of more util. When i'm writing something like : at "#" stuff " " it is working too long (delay about 3 ...
0
votes
1answer
38 views

gzip - is there a risk to lose files during compression if process dead?

Is there a risk of losing files during compression if process dies? I'm gzipping big files using wildcard, but accidentally running it without screen or nohup. Is there a risk to lose source files if ...
1
vote
0answers
43 views

Inject commands in other user's screen [closed]

My problem, which is close to this post, in detail: I have a user (minecraft) that launches a minecraft server using screen -c screen.cfg -d -m -S MCT java -server -Xms512m -Xmx2048M -jar ...
4
votes
1answer
70 views

Make screen work like a terminal (scrolling + alternate screen) [duplicate]

I would like to use screen (from GNOME Terminal, via ssh) like I use GNOME Terminal without screen, or as close as possible to that. Specifically: In GNOME Terminal, I can scroll back using the mouse ...
1
vote
1answer
54 views

Start a python script in `screen` on boot?

I want to be able to start a python script when I boot, but I want to be able to see lines which have been printed during the program. I have been able to put the line "sudo python /path/to/file.py" ...
2
votes
2answers
38 views

How to send serial command via Screen via the command line

I'm trying to use a usb-to-rs232 adapter to send a serial command to a device connected to the rs232 port. When I login into screen using screen /dev/cu.usbserial 9600 and then enter my command from ...
1
vote
0answers
14 views

screen shell keeps getting interrupted with output messages

I connected to my tv box through a UART port on the chip and established a serial connection using screen like this: sudo screen /dev/ttyUSB0 115200 When I hit enter I get shell access and ability ...
1
vote
2answers
56 views

Is there a program like tmux or screen but only for attaching or detaching a session

I was wondering if there was a program like GNU/screen or tmux that would allow me to attach or detach a session with a running process but would not provide all of the other features such as windows ...
3
votes
3answers
87 views

persistent ssh sessions without screen or tmux

My work seems to have deliberately crippled screen and tmux such that they destroy all sessions on logout (they didn't answer when I opened a ticket about it). i.e., when I [detach and] log out, ...
0
votes
2answers
29 views

Best way to start multiple “screen” scripts after restart? (centos)

We are using centos. As soon as the server is restarted and the OS is fully loaded, we would like to have a certain user ("foo") start three or four scripts with screen. For example, screen -d -m -S ...
0
votes
1answer
51 views

How to change default new window directory from within the tmux

I recently moved from GNU screen to tmux. I find it quite similar but with bigger support (I switched due to problem with escape-time in neovim- resolution was only for tmux). Unfortunately in tmux ...
1
vote
1answer
34 views

Shared libraries can't be found inside a screen session

I'm running a jetty-based Maven web application on Red Hat Linux. When I run it using the normal command, mvn jetty:run, it runs fine. However, when I try to run this command under a screen session ...
0
votes
1answer
53 views

Kill a screen session when script is done executing

I have a script that takes a while to run, and I'm using screen to run it. ssh user@host screen -dm "python dostuff.py" Now the question is, how do I make sure it kills the screen session after ...
1
vote
1answer
45 views

Remotely starting a screen session through ssh and closing the ssh session immediately

My goal is to remote to a server through ssh, start a screen, start a script, let the script run, and exit the ssh session while keeping the screen running its own python script. This is what I have: ...
1
vote
2answers
31 views

Find all idle screens

I have started a few processes in the past initiated via the screen command. Most of those scripts have already finished running, but looks like the screens are still sitting there idle. I can see ...
0
votes
0answers
13 views

launching screen clears x11 clipboard

Every time I launch screen(1), it clears my X11 clipboard. This is incredibly frustrating. I assume there's some default setting I can disable? I haven't been able to find it yet. Using gnome ...
0
votes
1answer
162 views

GNU screen locked, how to unlock?

So here's what happened: I ssh to the server with a normal user I run sudo -i I run screen Then I accidentally locked the screen session. to unlock it, it asks for root's password not the ...
0
votes
0answers
32 views

Include text from other file in screen printf

The original code of main.sh: screen -S myscreenname -p 0 -X stuff "`printf "myabcdefg"`" I want to put only abcdefg (without my) in other file. Below codes works just fine but I need the text.txt ...
0
votes
1answer
46 views

Circumvent deletion of screen session and nohup processes on logout

Everywhere I look I see that screen is for keeping a session open so that you can come back to it after disconnection. But this doesn't seem to be the case for a system that I ssh to. Do I ...
0
votes
1answer
27 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
36 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
29 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 ...
0
votes
1answer
26 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
51 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
32 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
32 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
42 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
85 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
26 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
44 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
42 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
30 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
28 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
83 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
22 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
45 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
25 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 ...