Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

How to run java command inside bash script in specific directory

So, I host multiple Minecraft servers on my Ubuntu VM and I've setup a script to start all of them at once. The servers are running in screen sessions and basically what the script does is send the ...
user avatar
-1 votes
1 answer
28 views

How to fix screen resume or list commands on Ubuntu system?

Screen or GNU Screen is a terminal multiplexer.See this for more information. Somehow the screen command has been messed up accessing a remote server. I'm still able to start a new screen (screen <&...
user avatar
0 votes
0 answers
67 views

How to start a screen session or reconnect to old one on if it exists on remote server

When someone logins into my remote server, I'd like them to automatically connect to a screen session. The way I tried until now it generated a new screen every time someone connected to the server or ...
user avatar
0 votes
2 answers
375 views

How to create an sh script to run another sh script with Screen session or Tmux session

All I want is create a bash script that runs another bash script in a different folder, but with a detached screen session. Also it should be executed as non-root user. Here's what I've done: #!/bin/...
user avatar
  • 3
0 votes
1 answer
122 views

How do I clear the GNU screen command screen?

Running "screen" for example with: screen /dev/ttyUSB0 115200 How do I clear the screen once in a while?
user avatar
  • 3
0 votes
1 answer
61 views

Keep the content of SSH sessions

Let's say I have this python script on my VPS: # test.py import time while True: print('tick...') time.sleep(10) If I log into my VPS using SSH and run this script, I can see tick... ...
user avatar
  • 175
1 vote
0 answers
41 views

How can I keep screen session alive after LightDM restart?

When I start a screen session from terminal emulator (PTS), it vanishes after I restart LightDM (sudo service lightdm restart). However sessions started from TTY are preserved. How can I keep screen ...
user avatar
  • 297
1 vote
1 answer
3k views

working minecraft server can't be started with systemd ("no screen session found")

I'm running ubuntu 20.04 server on a home server, and I have a self-hosted minecraft instance, located at /opt/minecraft/server, owned by the user minecraft. I can activate the server manually just ...
user avatar
  • 13
0 votes
1 answer
133 views

Communicating between a screen and a script

I would like to write a script that starts a process in a screen, letting it continue to run, but extracts a certain part of the output for use in the main process of the script. My first idea was to ...
user avatar
0 votes
1 answer
188 views

GNU GRUB fast boot on bios and can’t access bios now

OK so basically I have fast boot on and I went to Ubuntu Linux and I have a windows and operating system and now because I had fast boot on no USB port works now because this one is in the GNU GRUB ...
user avatar
0 votes
2 answers
169 views

GNU grub instead of grub 2

I recently uninstalled kali Linux from a triple boot laptop (othres being windows 10 and ubuntu 20.04) now instead of grub 2 which shows windows and ubuntu during booting all I can see is a GNU grub ...
user avatar
0 votes
1 answer
1k views

How to get command result out of minecraft server screen session?

I'm running a minecraft server inside a screen session. I want to send a command to that screen session and get the command result back (and print it back). Can I do that without using the screen -L ...
user avatar
0 votes
1 answer
1k views

Detach from screen without Ctrl+a d in SSH

I'm running a set of processes using the screen command on my Ubuntu server. The idea is that the process should ideally not be cancelled or be under the risk of being cancelled by mistake I find ...
user avatar
  • 103
0 votes
1 answer
1k views

How do I set up a MC server to restart and backup at 6am every day?

So I have a mineraft server and I want to set it up so that it restarts at 6am and backs up itself too. I run the server in screen and to stop the server I have to open the screen (with screen -r) and ...
user avatar
0 votes
0 answers
14 views

Problems with the grub

Please bear with me, I'm new with this Ubuntu18.4 just installed it a month ago. It was working fine (a little slow but I just asume it id because its a 10 year old laptop). But now when I start it, ...
user avatar
1 vote
0 answers
606 views

Linux screen command not accepting keyboard input

I am trying to connect to a JTAG device using screen. I type the command sudo screen /dev/ttyUSB1 115200,cs8 I am able to see all of the output from the board, but I am unable to type anything into ...
user avatar
  • 133
0 votes
0 answers
107 views

Crontab doesn't seem to work

I run my minecraft server in a screen and I have a script set up to restart the server via crontab every night at 3 am. restart.sh: #!/bin/sh echo "Letting people know that the server is going to ...
user avatar
1 vote
1 answer
281 views

How to log serial data immediately?

I am currently working on an electronics project with a microcontroller that sends information over USB to a computer, where it is read from a serial port. I can read the data with screen and log it ...
user avatar
1 vote
0 answers
280 views

Terminal line overwritten in a screen session

I have this problem while working on a screen session that the terminal line gets overwritten. If I detach from the screen session then I don't run into this problem. Here are some of the ...
user avatar
  • 111
1 vote
1 answer
554 views

Is there a way to send commands to screened process?

I have a process, that automatically starts up with server using this command - screen -dmSL myserver sudo bash /myserver/start I can stop the process if I connect to the screen with screen -x ...
user avatar
0 votes
1 answer
835 views

Linux - Closing screen session terminates process

I am new to this so I apologize if I am using the wrong terms. I am using Linux and am connected to my school workstation using the ssh function. If I run a program and I close the terminal the ...
user avatar
  • 1,072
0 votes
0 answers
452 views

Linux screen tool - Run command on session created in cron

In crontab (edited via command crontab -e on me user), I have written: @reboot /usr/bin/screen -mdS test */6 * * * * /home/me/RunDFB.sh I'm using RunDFB.sh to check, is my console app (which is ...
user avatar
  • 372
0 votes
1 answer
988 views

Simple modifications of the default /etc/screenrc

One of the first thing I install on a new host is GNU-screen. The next thing right after that is to Google for the lines I need to edit in my ~/.screenrc to activate the hard-status line so I will see ...
user avatar
  • 101
0 votes
1 answer
289 views

How do I clear the screen command history scroll-back?

How do I clear the screen command history scroll-back? For instance, delete this -> ctrl-a : at "#" stuff "something.dumb" I'm not talking about BASH history either. Things I have tried-> ...
user avatar
  • 21
0 votes
0 answers
479 views

How to reduce the border size of terminal

I am using screen to split terminal.But am not able to reduce the border size.
user avatar
  • 1
0 votes
0 answers
477 views

Screen script doesn't work

I've created the following bash script, which restarts my parse server: pkill screen screen cd /datadrive/parse-server-example/ sudo npm start The thing is, it seems that the script doesn't execute ...
user avatar
0 votes
0 answers
22 views

Run two commands in two "virtual consoles" in the same detached screen [duplicate]

I am running ubuntu 16.04 server. I'm basically making a script to do the following when the system boots: Open a new screen in detached mode Run a command in this screen Open a new "window / ...
user avatar
  • 113
1 vote
1 answer
103 views

Run second screen process after first screen process complete?

Is it possible to start a screen process, but let it wait for another running screen process to complete? Basically creating two screen processes like so: screen -S myfirstprocess screen -S ...
user avatar
  • 2,161
0 votes
2 answers
169 views

Cannot log in alts in consoleclient

So I am on a minecraft server, I want alt-accounts afking via a console client. So instead of running this 35 times. screen -d -m mono MinecraftClient.exe (username) (password) (Server-IP) I came ...
user avatar
  • 17
0 votes
0 answers
64 views

Running "screen" in terminal VS running "screen" as keybind?

If I'm in a screen session and I run screen from the terminal, a new window opens up in the same directory as the previous window. However if I bind the screen command to a keybind, like this bindkey "...
user avatar
  • 4,543
1 vote
1 answer
2k views

How do I split a terminal into two "views" (or two parts) so I don't have to scroll up / down?

Nginx log is being generated real time with watch -n 1 "tail -n 1000 nginx.log" I want it to appear on the right side of the terminal. How can I make 2 or 3 screens? I have a very wide screen (...
user avatar
  • 111
-1 votes
1 answer
88 views

'screen' app & video output

I am using 'screen' app so that I can view a running process via SSH remotely, the PC with the process has lightdm disabled. If I switch on the monitor (from Dsub output) I see a command line like ...
user avatar
  • 39
4 votes
1 answer
13k views

Start a screen session and run a script without attaching to it?

I'm trying to write a script to: Start a new screen session Run some program or script within that new screen session Detach from the screen session, while the program from step 2 may still be ...
user avatar
14 votes
2 answers
8k views

How do I start screen with multiple splits directly from the command line?

I'm using screen after I have logged in with ssh to my server. As of now I set up the splits in my screen window by hand and run the commands by hand as shown in the following screen-shot: The top ...
user avatar
  • 32.1k
1 vote
1 answer
1k views

Terminate GNU Parallel in Screen Session letting jobs finish

I'm running a GNU Parallel command on a screen session. Unfortunately, I did not put an "&" at the end of the command to push it to the background. Hence I do not have access to the command line ...
user avatar
  • 225
3 votes
2 answers
801 views

Detach from screen with C-z

I start screen like this $ screen I run tests in screen like this $ bundle exec rake. # takes ten minutes to complete Now I want to detach from screen, $ C-a d But I'm more used (muscle memory) ...
user avatar
1 vote
1 answer
5k views

How can I clear screen command history? [duplicate]

I'm using screen command after ssh to a public remote machine with Ubuntu 14.04 so that I could continue my sessions whenever I want. I've found that some admins are tracking my command history and ...
user avatar
  • 13
0 votes
0 answers
46 views

Screen command cuts off mouse at 95 columns

I'm using the 'screen' command for a persistent shell session. It seems to work pretty good, with a couple of caveats. Mouse clicks only register as 95 columns or less. The bottom line sometimes ...
user avatar
0 votes
1 answer
457 views

Get linux 'screen' to recognize xterm mouse-click cols > 95

I have a Web-based terminal using xterm.js and ssh2 from node.js. When I click, xterm.js sends mouse-click coords via xterm escape sequences. This works fine. When using the 'screen' cli utility, ...
user avatar
0 votes
1 answer
203 views

How to log into running terminal/shell with ssh

so I am running a Minecraft server currently, and I'm logging into my server (Ubuntu Server, 16.04 on HP Proliant dl580 G5) through ssh. the only problem I've run into is that when my connection is ...
user avatar
0 votes
2 answers
580 views

Screen session used to run python PFA on server dies after a few days

I am running a python based PFA script which basically writes spreadsheets after every hour. It is working well. I use SSH on Putty to access my server and hence I used a screen session to run the ...
user avatar
  • 53
0 votes
1 answer
1k views

Segmentation fault on Ubuntu 16.04

I have a problem using screen command on Ubuntu 16.04. I am working on a C++ project, and using servers with Ubuntu to simulate my code. Segmentation faults started to appear after updating from ...
user avatar
  • 3
3 votes
0 answers
2k views

What is wrong with my Systemd service file?

I've been trying to get a systemd service to work for a while now, but with no luck. What I am trying to do is create a startup script that will start a java program for a modded-Minecraft server. ...
user avatar
  • 31
1 vote
1 answer
531 views

How can l resume a detached screen after switching off my laptop?

I want to launch a program on a remote server (Amazon AWS), but the calculation takes about 50h. So I would like to launch my program, switch off my computer then come back to see the results once ...
user avatar
  • 163
0 votes
1 answer
540 views

emacs + screen not properly handling keys

I'm sshing to an ubuntu server: cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.04 DISTRIB_CODENAME=zesty DISTRIB_DESCRIPTION="Ubuntu 17.04" I run screen, and then emacs. $ screen --...
user avatar
  • 105
0 votes
0 answers
321 views

How to increase "screen buffer" when connected to the machine via SSH?

TLDR: I want to see a lot more of my screen via scrolling back when the command/script (e.g. ls -la /etc) displays results that doesn't fit in 1 screen. If you check the screenshot below, it doesn't ...
user avatar
  • 1,385
1 vote
1 answer
5k views

`watch`, `tail`, `grep` combination in `byobu`'s `windows.tmux`

I am (re)writing my windows.tmux for my frequently used byobu sessions. Below is my precise requirement: I would like to have a tab (or window?) with a root prompt. (On start, it waits for the sudo ...
user avatar
0 votes
0 answers
48 views

Latest modification of text files (in a path)

I am not an expert in this whole scripting stuff but I really need help creating the following bash file: The bash script should open a screen: screen -d -m /home/cs2d/cs2d_dedicated & The ...
user avatar
1 vote
1 answer
292 views

Is there a way to use a GNU-Screen in a portable-like way?

I have website on shared hosting, and I haven't (and never had) permission to install software here. Just full access to my /home/<username>/ folder. But before the hoster moved my sites to the ...
user avatar
  • 111
2 votes
1 answer
4k views

Auto-login user to TTY on boot, and then auto-run command within GNU screen

Ubuntu 14.04.5 LTS Desired functionality: Remote Ubuntu server boots and automatically starts an ongoing process as a specified user. I can then log in remotely at a later time and view the past and ...
user avatar
  • 91