Questions tagged [gnu-screen]

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.

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

Run screen command with variable & tick through cron (cron run .sh)

I run screen command through cron, where the codes is in lorem.sh files. This is cron codes: * * * * * cd /home/z; ./lorem.sh Inside lorem.sh: screen -S screenname -X stuff $'\033[B' sleep 1 &&...
0
votes
1answer
1k views

GNU Screen: how to start a bash process and execute a command within it?

I'm trying to set up a screenrc file that opens a few windows, and in one of them I'd like to start a shell and start vim within it (rather than starting vim directly). I've tried things along the ...
0
votes
2answers
495 views

Why doesn't Alpine's viewer command work within GNU screen and how can I fix it?

When I run the viewer command in alpine from within GNU screen it tells me "viewer command completed" but it doesn't actually bring up Lynx (or any other viewer). I even tried writing my own script ...
0
votes
1answer
18 views

screen -ls no longer displays session start date/time?

This is how the output of screen -ls looks like for many years on one older Debian machine: artax:~> screen -ls There are screens on: 46785.pts-6.artax (08/26/2019 04:41:05 AM) ...
0
votes
1answer
15 views

Send very long commands to detached screen results in “ERROR remote control too long”

I have long commands to send to a detached screen. I used : screen -x screen-name -p 1 -X stuff 'mycommand\n' As inspired by this related post. It works, but if mycommand is very long I get the ...
0
votes
1answer
29 views

How to use existing terminal session to save output with ANSI escape code like `script` or `screen -L` do?

I run a python script on konsole to print long logging for few hours, then I realized I want to save its output with color, but it's too late to run either script or screen -L to save the output as ...
0
votes
1answer
436 views

Persistent screen session inside Docker container

I am trying to create a Docker container with screen session running some script. Dockerfile contains CMD screen -S session1 ./testLinux When I run it in detached mode it closes immediately, saying ...
0
votes
1answer
35 views

Screen keeps terminating when trying to console in to routers

I am having trouble with screen. It keeps terminating every time I try to console into my routers. eric@pop-os:~$ screen /dev/ttyUSB0 [screen is terminating] eric@pop-os:~$ screen /dev/ttyUSB0 [...
0
votes
1answer
588 views

Can attaching to tmux sessions be password protected, similar to gnu screen?

I've been using gnu screen for many years, and I've been looking into switching to tmux. I can't figure out how to make tmux require a password when attaching to a session. In gnu screen, I use ...
0
votes
2answers
101 views

How can I find out the Screen server process?

Does GNU Screen have a server-client architecture model? Is each Screen session a Screen client process? Why can't I find out the Screen server process, but only its session processes i.e. ...
0
votes
1answer
103 views

How to read screen's named pipe?

For curiosity, I wanted to read a GNU screen session's named pipe. $ screen -ls There is a screen on: 59750.hello (Detached) 1 Socket in /var/run/screen/S-gergely. And indeed there is a ...
0
votes
3answers
99 views

Is there a way I can tab between screens without pressing ctrl-a tab every time?

Essentially I just want to press Ctrl+Tab, not Ctrl+A then Tab. I don't believe this can be accomplished with an alias, but have read some stuff about maybe using stty? But I've never used stty and ...
0
votes
1answer
121 views

automate the title of gnu screen windows

(got one possible solution on stack overflow : https://stackoverflow.com/a/51769020/9497573) edited to be more accurate I try to make the title of my windows in screen automatically equal to the ...
0
votes
1answer
203 views

Why does the .screenrc key binding ^@a map to ctrl+space?

In my .screenrc I have the following stanza: # Change command key to ctrl+space escape ^@a I found this magic incantation in a forum I can no longer find; it allows me to hit ctrl+space to invoke ...
0
votes
1answer
97 views

Armbian [Orange PI] remote connection

I'm trying to connect to an Orange PI lite Armbian_5.38_Orangepilite_Debian_stretch_next_4.14.14.7z with a FTDI cable USB => serial using screen or putty and connection is fine. I can see the ...
0
votes
1answer
1k views

using screen to split the terminal

In a bash script I want to show the user a file with less, but I don't want less to take up the whole terminal: I need to keep some informations visible in the terminal while the user browses the file ...
0
votes
1answer
238 views

Can I reopen closed panes in GNU Screen

Related, but this is Gnome Terminal, not Screen I closed a "tab" (pane? window? not sure the correct term) within my screen session. Is there a way to recover a "tab" lost in this way? (not ...
0
votes
1answer
286 views

Run a bash script stored on a screen on my server from a local machine remotely [duplicate]

I did this: ssh -f user@host "screen -dm -S screenName" Now I want to add a bash script command to this line so that the command is executed then the screen detaches. edit: so I want to do so ssh ...
0
votes
2answers
280 views

ANSI in BitchX not displaying properly

I am attempting to get ANSI to display properly in a screen session using Iterm2 on OS X, the default TERM is set to screen.xterm-256color I tried export TERM=vt100 and export TERM=ansi and ...
0
votes
2answers
2k views

Netcat as Daemon

I'm trying to set up something that telnets into a device and saves the output to file. I can get it working on the CLI, but not running it at boot (using crontab) This works running running on the ...
0
votes
1answer
591 views

Screen command set shell title to current host name

I would like to know how can I set the shell title to the name of host we are currently logged into. My scenario is like this. I log into host A then open up screen and create several new windows ...
0
votes
1answer
721 views

ncurses screen/tmux-256color

I have my term set to tmux-256color through .tmux.conf, but I can't get 256 color mode in an ncurses app working. According to this post it should be supported by now. xterm-256color works perfectly ...
0
votes
1answer
131 views

Setup up Two Instances of a Service to run on Linux

Essentially what I am trying to understand how to do is to modify some scripts I found to run two simultaneous instances of a service on a Linux Mint machine that I had lying around. Setting up the ...
0
votes
1answer
55 views

How can I run a script every time a certain GNU screen changes?

I am running a Minecraft server in a GNU screen that is usually detached. What I want to do is to watch the screen and run a script every time something is printed to the screen (which the server ...
0
votes
1answer
540 views

Running a screen session from a remote machine

I have a .sh file and related Python files associated with the script on my local machine, but I need to run it using screen because I need an ssh connection for a long period of time. So I need to ...
0
votes
1answer
63 views

What can stop ssh from re-attaching to an existing 'screen' session on a remote server?

What would stop the following command from re-attaching to an existing screen session on a remote server ? ssh -t server2 "screen -dr admin" Machines server1 and server2 both have screen sessions ...
0
votes
1answer
435 views

How to display three whiptail on the same screen?

I have three very long processes that I need to monitor. Rather than having three terminal windows open each with a separate whiptail progress bar. I am searching for a way to send three whiptail ...
0
votes
2answers
41 views

How can I use the same shell I worked in the past as I was disconnect by long time no operation in Putty?

Last night I was debugging with GDB. The GDB is a remote Red hat machine, and I log into with putty. I didn't finish my debug last night, and I left. But this morning when I come back ,the PuTTy is ...
0
votes
1answer
76 views

Program Does Not Execute as Expected

I have the following bash shell script which 90% of the time does the expected thing, but sometimes it doesn't. The problem is with the placement of the date and time. As shown, I have told the ...
0
votes
1answer
593 views

Unable to initiate screen session

I am calling the following command via bash but it is not creating screen session at all: screen -d -m time python3 myscript.py ; sleep 1 when I do screen -r it says no screen to resumed. However ...
0
votes
1answer
135 views

Bash/Readline vi line editing mode doesn't work in Screen

I have set -o vi in my ~/.profile, and it works fine on the regular console and under Tmux. But when I run Screen, if I press Escape or ^[, I get a visual bell, the next key I press seems to get eaten ...
0
votes
1answer
57 views

Compilation error when building gnu-screen package for Freescale P2020 Board

I am trying to run screen package on a Freescale P2020RDB Hardware board. I have successfully run ./configure and make and make install commands for the package I get the following log error: No ...
0
votes
1answer
547 views

screen inside screen [duplicate]

In my terminal I run a screen. Obviously I have several tabs and in one of them I connect to a remote server. In this one I have a detached running screen, I attach it but I can't switch its tabs. PS:...
0
votes
1answer
2k views

Screen Command - How to leave screen and start it again

I have a Python script I have set to run on boot on my Pi (Raspian Jessie). Running the screen command sudo screen -r wixel prints the running output of this script. Everything looks good. Hitting ...
0
votes
1answer
359 views

screen - sent bash to background?

So I was working on homework on my school's unix server and I think I totally messed up a screen session. I was going a little trigger/keyboard happy in vim and accidentally did :w2 instead of just :w,...
0
votes
1answer
580 views

What is the difference between “Martin ~]#” and “sh-4.2#”

I use webmin for administrate my dedicated server (Centos 7 64 bits) and from there I create cron jobs, I am executing an .sh script as root which contains: #!/bin/bash screen -dmS aud screen -S aud ...
0
votes
1answer
186 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 ...
0
votes
2answers
493 views

Showing login message when connecting to Screen

I have added this to .profile: [ -z "$STY" ] && screen -Rd "work" When connecting to a remote machine via ssh, the automatic attachment to screen is hiding the server's motd (message of the ...
0
votes
1answer
530 views

JAR file terminates unexpectedly without error

I have a JAR file that I'm running in a screen session using java -jar <myjarfile> and for some reason it stops running at unexpected times. I'm redirecting both the StdErr and StdOut to ...
0
votes
1answer
319 views

Ugly bash function to send commands and “say” anything in screen over ssh. Is there a better way?

I’m working on a function this works but it is ugly. One thing that could be changed is being able to know the name of the screen. Using screen -dms minecraft java ….jar now starts a screen session ...
0
votes
1answer
169 views

screen manager with VT100/ANSI terminal emulation

If I join with 'screen' to existing sessions, I can get a list of the sessions with C-a " keystroke and switch between them, however I can't find a way to safely leave/detach and keep all the ...
0
votes
1answer
706 views

Screen command keypress Ctrl+r?

This is example of the command: screen -S dua -X stuff $'commandhere' I've searched lots of resources but still not found the command for keypress Ctrl+R.
0
votes
2answers
557 views

No numlock in screen?

I am using a laptop and Putty on a Windows system. When I connect to my Debian Squeeze server in Bash environment, I can use the "Pos1/Home" or "End" (at the numlock part of the keyboard) to navigate ...
0
votes
1answer
688 views

Setting LS_COLORS and in a GNU Screen

Is there a way to set a GNU Screen LS_COLORS to that of the default non-screen terminal window? Is there .screenrc or .screen_profile, I don't understand what happens when a GNU Screen is ...
0
votes
0answers
26 views

How to scale two displays differently and rotate one of them?

I have two screens: 4K, HDMI-0 1680x1050, DVI-1 HDMI-0 is left of DVI-1. DVI-1 is rotated physically 90 degrees clockwise ( --rotate left will make it rotate correctly to fit the physical rotation)....
0
votes
0answers
9 views

Tracking attached windows on GNU screen

Is there a concise way to see which windows are attached in GNU screen? I'm using screen to handle my terminals on a single session so I can easily switch between all open windows. Hence, I want my ...
0
votes
0answers
28 views

Display full command on GNU screen with bash in title

There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common: They give the manual solution, which only prints the current running ...
0
votes
1answer
71 views

Read output from screen

I want to build an Minecraft Webinterface using a NodeJs backend server which communicates with a Bash Shell Script on Debian 9. 1: I create a new Minecraft Server using screen -S server_name java -...
0
votes
1answer
31 views

Automatically paste commands in multiple processes of a screen session

I have several bunch of commands writen in bash contained in a text file, separated by \n\n and I would like to automatically paste each in given screen processes. For the sake of clarity, let's say ...
0
votes
2answers
47 views

Is it possible to copy directories from a remote session, to the local machine?

I have been running my code within a screen session on a remote server. I want to move the output directories generated within this session on the remote server to my local server using SCP but I am ...