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
1
vote
1answer
428 views

How do I prevent the Keyboard Interrupt from being sent through the Screen program

I am making a python program, whose output (not input) can be viewed via the screen program. However, the problem is that doing this allows the user to turn off the program via the Keyboard Interrupt (...
1
vote
1answer
2k views

ttyUSB0 serial port crashes and locks, requires computer reset

I posted this question on stack overflow already but after looking up similar questions I realized this is a much better place for it (and it only got 8 views after 10 hours on a Sunday). If necessary ...
1
vote
0answers
101 views

Trying to attach to a screen kills the terminal

I was trying to attach to a screen session on a remote computer, with screen -r, but my terminal got killed (I was trying to attach and see what it is, because I did not remember creating it). Now ...
1
vote
1answer
233 views

problem with U-boot while flashing Linux in sd-card

Please help as it is immense necessary for a project which is to be evaluated coming week. Also, I am very new to this and unable to find help from existing contents available on the Internet. While ...
1
vote
0answers
233 views

Maintain screen session when executing shell script on boot

Solved: I solved this problem by introducing a delay before executing the script: @reboot sleep 60; /root/start_server.sh On Ubuntu 14.04, I have a crontab entry set to run on reboot: @reboot /root/...
1
vote
0answers
158 views

Bash script for opening screens and compiling the same file

I have written a bash script to initiate separate screen sessions and run a command in each of them that compiles the same C++ source file in ROOT (an object-oriented data analysis framework http://...
1
vote
1answer
198 views

Save views in multiple screen terminals

As I do in default single view screen terminal of ubuntu; gnome-terminal \ --tab-with-profile=Default --working-directory="some dir" --title="some title" \ --tab-with-profile=Default --working-...
1
vote
1answer
466 views

how to debug/fix screen crashes on startup

(this is a question in reference to the OS X version of Gnu screen. I don't know if this makes any difference - and I guessed that Unix & Linux would have better screen-fu than Ask Different.) ...
1
vote
0answers
544 views

Screen create/resume session, run command an detatch

I am trying to make a startup script for my Minecraft severs but I can't figure out how to: If the session "Server1" exists, run a command in it, if it doesn't, create the session and then run the ...
1
vote
0answers
80 views

.screenrc setting to make the silence notification to stay

Is there an option for .screenrc file so that the silence message <c-a>_ stays on the terminal until I press any keyboard button?
1
vote
0answers
958 views

running matlab command line in screen — can't type after reattaching

I'm logging in via ssh to a more powerful computer, on this I start a screen session with screen -S mine and then open a matlab command line via matlab -nodesktop -nodplash and then run within matlab ...
1
vote
0answers
350 views

how to focus different `regions`(Ctrl-a S) via mouse-click in `screen`?

When I start vim in a screen session, and activate the mouse: :set mouse=a the mouse remains disabled. I cannot switch tabs via mouse click. How can I configure screen so that mouse support in vim ...
1
vote
4answers
354 views

Byobu / Tmux copy whole line

I use byobu in tmux mode. In screen I can do this: Ctrl+a [, move to line, Y, Ctrl+a ] "Y" copys the whole line into the clipboard. I am looking to something similar in byobu in tmux mode. The only ...
0
votes
2answers
2k views

How to find which screen session is one working on

I use the screen program extensively. It has helped me tremendously by reducing the time spent in setting up session every day. However, now that I have >8 screens - I forget sometimes which screen I ...
0
votes
2answers
2k views

How to save terminal displayed output to a txt file?

I have tried with the script but it does not work. milenko@milenko-desktop:~/MTM$ script output.txt Script started, file is output.txt milenko@milenko-desktop:~/MTM$ wc -l output.txt 0 output.txt ...
0
votes
2answers
4k views

I hit Ctrl+d while in a screen session, how do I now send commands?

I was trying to Ctrlad, and failed miserably and input Ctrld instead, now the screen won't respond to my commands. They appear, and the app running in the screen (a minecraft server) is still ticking ...
0
votes
2answers
2k views

How to know when a job in screen finishes?

Is it possible to know if a script executed inside a screen session finished or not? The script can be seen by typing jobs and I would like to terminate the screen session when the script is finished. ...
0
votes
1answer
28 views

In GNU Screen, what are benefits of using new windows under sessions than new sessions themselves?

As an example, let's say I want to run 3 projects, each having 2 scripts. Option 1: Create 3 sessions in GNU Screen and open 2 windows under each session to run the scripts. Option 2: Create 6 ...
0
votes
2answers
82 views

Reopen screen based on title

I created a screen session using the command: screen -t name Based off this name, is there any way to reopen this session (assuming there are no duplicate names) ?
0
votes
1answer
60 views

How to know which shell window am I in?

I read this guide to screen https://www.mattcutts.com/blog/a-quick-tutorial-on-screen/. It says we can switch shell window using Ctrl-a followed by a number from 1 to 9. Suppose I am in window #7. ...
0
votes
2answers
490 views

Prevent GNU screen from terminating session once command is killed by user

Im trying to run a command in screen, but prevent it from ending the session once i kill the child process with Ctrl-C while in screen, much like this: https://unix.stackexchange.com/a/47279/79125, ...
0
votes
1answer
97 views

Screen session fails when detaching

I have successfully used the screen utility to run my time consuming scripts when I am working on a server via ssh. However lately I have been running into a problem, I have found my script terminated ...
0
votes
2answers
800 views

How to ssh into a remote box, run a command and keep it running after I disconnect [duplicate]

I've seen people saying use screen. But when I typed "screen" in the terminal, I got: "Please set a terminal type." Any idea how I can fix this?
0
votes
1answer
176 views

zsh alias with linefeeds, commas and quotes

In my zshrc I have an alias like this: alias sl='screen -list' It fits my need (seeing what screens I have running), but the output is rather ugly: [pts/7]~% sl There are screens on: 32765....
0
votes
1answer
1k views

How to stop background processes started with screen

This question might have been asked before but I don't see it. I use screen ssh to remotely start processes that take multiple days. I ssh in, start multiple processes in the background, and detach ...
0
votes
1answer
517 views

Gnu Screen and vi - visualization issues

The scenario is as follows: gnu screen launched onto a scientific Linux distro ssh to an aix machine tried to edit a file with vi And this is what I got: "ex: 0602-108 screen is not a ...
0
votes
1answer
39 views

Are processes within screen treated differently from foreground processes?

Assume I have a long running process, long_running_proc with a single TCP connection to host host.example.com. Is that process treated differently, by the OS or the shell, when it's run as a ...
0
votes
1answer
21 views

^a etc when running screen

I'm used to keyboard shortcuts like ^a (go to the beginning of the line) in a terminal session. When I'm running GNU "screen" (so I can resume an ssh session after packing up my laptop), a bunch of ...
0
votes
2answers
673 views

Pause a process and bring it back to foreground in a separate screen in Ubuntu [duplicate]

A process put to sleep by issuing ^Z can be brought back to the foreground by listing the running jobs $ jobs and giving the job id to fg %id. But when I tried to list the jobs in a separate screen ...
0
votes
1answer
52 views

If GNU screen already exists, reattach to it, else create it

I'm trying to do this: if a GNU screen named worker already exists, then reattach to it, else create it by starting python example.py. I tried: if [ls /var/run/screen/S-root/ |grep -Fxq worker] then ...
0
votes
1answer
83 views

Launching GNU screen when opening terminal

I want that every opened terminal would be launched with screen session. Actually what I want is simply accomplished with following steps: 1. win+enter (open terminal in i3wm) 2. $ screen I wanted ...
0
votes
1answer
438 views

serial device output looks fine in gnu screen but garbled using cat

I have a serial device (Omega RDXL4SD thermocouple reader, comms details p 22 here) connected to a USB port on my Raspberry Pi running Raspbian via an FTDI cable. It appears at /dev/ttyUSB0 and the ...
0
votes
1answer
347 views

How to chdir to symlink source and not target in .screenrc

Is there a way to tell screen not to dereference symlinks when one is passed to the chdir command? In my .screenrc I have commands like this: chdir /data/project1 screen -t "project1" chdir /data/...
0
votes
1answer
132 views

Login with GNU screen with username and password in a script

I need to login to a screen session with screen /dev/tty.usbmodem1415 115200 and then there is a prompt for username and password. login: Password: After entering I would like to enter a simple ...
0
votes
1answer
79 views

Is there a limit to # of users connected to a screen

When using screen -x NAME is there a max number of connections to a single screen?
0
votes
2answers
495 views

Do different screens on different CPU cores?

I am connecting to a (osX) server with many CPU's. I want to run my program for many different input files. Right now, i run one by one: for input in "${inputs[@]}" do .<my-program.sh> --...
0
votes
2answers
537 views

Linux: Making “screen” sessions persist in Debian “jessie”

EDIT: The initial premise of this question was that screen didn't work properly on stock Debian Jessie, and I was looking for workarounds. This turns out to be an artifact of a low sample size -- I ...
0
votes
2answers
937 views

Getting the last executed command on a screen

I have a command that is fetching some information from the internet and entering it into a database. To ensure it keeps running, I am running the task on an AWS instance with a screen command. I ...
0
votes
2answers
510 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
135 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
364 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 ...
0
votes
1answer
43 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
1answer
82 views

restore idle screen session under FreeBSD

I use GNOME desktop environment under FreeBSD. I had multiple tabs in GNOME terminal 2.26 and in each tab I had an ongoing screen(4.00.03) session. I logged into one of the remote servers with SSH and ...
0
votes
3answers
909 views

Remote Desktop like screen/tmux (from windows)

Is there a way to remote desktop into a Linux desktop from Windows and have it just like Windows? So if i remote desktop to a Linux desktop from a Windows machine I want to the see that Linux desktop ...
0
votes
1answer
855 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
493 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
14 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
25 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
221 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 ...