0
votes
0answers
10 views

GNU screen command on path not found

When I use GNU screen in the following way, it works: screen java -jar .... but why does screen bukkit .... not work when bukkit is a executable script from my path ($PATH)? I've read here, ...
0
votes
0answers
26 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
2
votes
2answers
96 views

java app running in screen starts a process and this child is NOT in screen

I'm running a spigot server in screen, it is a java app. When it crashes and goes down gracefully it calls a restart script as a last action. This script simply contains a java -jar spigot.jar. The ...
0
votes
0answers
37 views

Detaching from a GNU Screen suddenly clears the terminal

I feel so stupid for asking this, but here goes: I updated my Ubuntu (Server) install today from 13.10 to 14.04. Before the upgrade detaching from screen did not clear the terminal and now it does. ...
0
votes
1answer
51 views

How to send message both to netcat and other script?

I'm trying to make some client-server interface. Think of it as one-on-one chat. What I want to achieve are two horizontal views. Bottom for my (server) input, top for client output and my input. ...
0
votes
0answers
122 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
0
votes
0answers
28 views

Connecting to ssh and using screen not working properly

I used once ssh -t <login@server> screen -R to connect to a server and everything worked fine. I used the terminal in the server to execute an script and then detach the screen. I came back ...
0
votes
1answer
132 views

Archlinux - Autostart `screen` after boot

I'm building some small internet radio player using Archlinux. All I need right now is to autostart (without login!) script or just command: su -c 'screen "vlc (a lot of parameters)"' vlc_user By ...
1
vote
2answers
99 views

VIM/Screen background color is inverted for non-text characters

I'm trying to use a vim while inside a screen session. For some reason, the background color for the parts of the screen without text are displaying as dark while the parts with text are displaying as ...
1
vote
1answer
202 views

install screen from source code

I tried to install the screen command on RedHat from source code. But when I run the configure, it returned configure: error: !!! no tgetent - no screen So does anyone know how to fix it?
1
vote
1answer
120 views

Tab title is wrong with ssh/screen on osx

I am doing ssh -t host screen -D -RR in OS X (10.9) terminal tabs. My ~/.screenrc is identical on all remote hosts and contain the following line: hardstatus string "%H(%n:%t)$USER %h" My ...
1
vote
2answers
647 views

How can I start new window in the same screen session automatically?

I read How can I start multiple screen sessions automatically?, but I don't understand the first accepted reply: screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" In my case I need to ...
0
votes
1answer
80 views

gnu-screen does not clear all its contents upon leaving it

I am using screen in bash under CentOS. After leaving a screen with Alt-a d, I am back in bash as expected. But there are remnants of the screen output left, in particular the status line (don't know ...
1
vote
1answer
78 views

list screen window number bash

I was wondering if there is a way to get which window number of screen that is active? As in: screen -X get-window-number I have found no way to list screen windows to output, only the actual screens. ...
0
votes
1answer
107 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
0
votes
0answers
23 views

Run screen splitted and specify commands for each windows?

Ubuntu 12.04, I would like to run gnu-screen already splitted in two regions and with certain commands in it, I have found that in new version of screen there are -Q argument, but I still dont get how ...
2
votes
1answer
238 views

screen - move cursor to beginning of line

In bash I can usually move the cursor to the beginning of the line using CTRL+a. In screen, CTRL+a is being used for the special screen-commands. How can I a) use another key-combination for the ...
2
votes
0answers
146 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
0
votes
1answer
298 views

Locking a GNU-screen session after x minutes of non-use on Linux

I have a couple of services running in a GNU-screen session on top of Bash. Because one of the services contain sensitive data I have to constantly either close the terminal completely or lock the ...
0
votes
3answers
48 views

Unable to access shell on ssh

I have added the following line to my .bashrc file to start gnu screen on login: exec screen But it seems to go in a loop (may be that is its starting screen also on screen start). I am not able ...
0
votes
2answers
345 views

How to actually type CTRL-A in a linux terminal?

How do I to invoke Ctrl-a in a Linux terminal session. I am trying to share a screen using screen. The command to turn on multiuser is Ctrl-A :multiuser on , I know how to press Ctrl+a on my ...
0
votes
1answer
57 views

gnu screen command that stops running then switching to another tab

I use GNU screen to keep a bunch of tabs open in my terminal session, and I would like to have a bash command, watch -n 1 ps aux | grep something, that runs when I am looking at that screen tab, but ...
2
votes
2answers
358 views

How can bash screen be setup in the background and brought to the front later?

This a deeper explanation for the question. My goal is: Start a bash shell configured with a set of environment variables, but running in the background. Launch about five screen commands in the ...
1
vote
1answer
1k views

Horizontally split-screen with two programs?

I have two programs A and B. I want a single command, which will run Program A and Program B in two different terminals but in the same tab, i.e, in a horizontally split terminal. I know screen can do ...
2
votes
2answers
299 views

Screen run command, detach and get output

I am trying write a script which connects and runs command on /dev/ttyUSB0 after that gets the output. screen -d -m 'SCREEN COMMAND' -L /dev/ttyUSB0 But this does not create an output file. How ...
1
vote
2answers
105 views

bash screen title usage (screen -t “something”)

I was working with screen lately and wanted to use the -t option for it. What's the point of the-t option if the title of the screen does not show anywhere like when using -list or within the screen ...
1
vote
1answer
535 views

Enable audible bell in gnu screen current window

I use putty to ssh to a ubuntu bash shell, which holds irssi in a screen session. I figure I can probably configure irssi to send system bell when certain messages show or activity happens, and I ...
3
votes
1answer
977 views

How do I use the terminal SCREEN when chrooted?

How do I allow a user to use SCREEN on a chrooted user? I have tried everything but I keep on failing. I need the user to be able to use SCREEN when they are logged in bash as a chrooted user.
2
votes
1answer
110 views

“Redirect” shell to gnu screen

I'm just wondering. Very often I want to quit shell connection. For example when I ssh to remote linux and after while want to turn off computer. If there is process running I can't turn my computer ...
1
vote
1answer
141 views

change colours when running screen

I use gnome-terminal in Centos 5. I have my terminal settings customized to use the colours I like. However when I run screen (or tmux) the colours for my terminal input lines are always inverted. ...
0
votes
3answers
464 views

Linux: Terminate screen once the process within ends

Right now I'm running a process within GNU screen. Screen is started with the command screen -dmS screenname and the attached with screen -r screenname. A process is started in the screen session, and ...
2
votes
3answers
210 views

better options for screen?

OK. So I love screen. It has saved my bacon a few times when machines crash or get disconnected from the network. However, there are enough reasons keep keep me from using screen for everything, ...
2
votes
1answer
108 views

Screen - switch tabs in subscreen

I use this in my .screenrc: bindkey ^[q prev bindkey ^[w next to switch between windows with alt+w/q If I open screen in screen, I can switch like: ctrl+a+a + number, but I would like to id for ...
1
vote
4answers
2k views

Get PID of process started in screen by su

i have a simple script that starts quassel-core in a screen session as different user! The script is: #!/bin/sh su ircc -c 'screen -dmS quassel /home/ircc/quassel/quassel-core' I want to start and ...
0
votes
1answer
465 views

Remap shift-tab to tab in bash/screen/putty in Linux?

Well I use vi-mode in bash via the set -o vi command. What's annoying is when I'm typing words in capital then try to complete using tab but don't release the shift-key fast enough, it brings me out ...
1
vote
1answer
1k views

Configure GNU Screen's colors?

GNU Screen gives my bash prompt nice colors, though the dark blue is hard to read on a black background. I can change the ls colors using /etc/DIR_COLORS but the bash prompt in screen doesn't get ...
2
votes
1answer
425 views

gnu screen: find which screen window has a given running process or variable?

I would like to find out which of my ~50 gnu screen windows has a process running with a specific variable defined in it. For example, about a week ago, I did this: id=ABC123456; ~/run_long_process ...
3
votes
2answers
5k views

How can I start multiple screen sessions automatically?

I'm trying to build a command that launches screen, creates four sessions with different names, and run four different commands. I know how to do this manually: 1. screen 2. ./command1 args 3. ...
0
votes
1answer
739 views

Starting program on boot with screen

Here is my script in init.d (Debian Linux) #! /bin/sh # /etc/init.d/blah # # Some things that run always touch /var/lock/McMyAdmin # Carry out specific functions when asked to by the system case ...
1
vote
0answers
127 views

Getting the screen to delete contents of less, man, etc. after “q” [duplicate]

Possible Duplicate: Using screen, commands like less and man don't clear the screen afterwards In bash without screen if I do a less or man and then type q to quit, the contents of the ...
2
votes
1answer
429 views

How to open two terminals side by side using `screen`

I use vim a lot. I can open two files side by side with -O option: $ vim -O hello.{h,cpp} Today I tried screen: `C-a |` => split terminal vertically. `C-a <tab>` => switch to the ...
1
vote
3answers
1k views

Keep GNU screen window open after program terminates?

The GNU Screen manual says: When a program terminates, screen (per default) kills the window that contained it. The (per default) suggests that you can change this option, so that a program ...
2
votes
2answers
5k views

How to list all users that have terminal sessions, including screen sessions?

I would like to have a list of all users that are active on my Linux system, including those who have running but detached screen sessions. The who command only shows me currently logged in users, but ...
1
vote
1answer
184 views

How to divide screen within a bash script

I have made a short bash script that gets xml data using curl and sends some (it's a chat, in fact) regarding its given arguments. So I can either run the following : watch --no-title myscript and ...
2
votes
1answer
409 views

gnu-screen: Automatically run script when attach/detach session

I would like to have bash script run by screen every time when i attach (start.sh) or detach (end.sh) session. Is there any way to configure screen to do that?
1
vote
1answer
334 views

How can I use Control+` (grave accent) as my escape character for screen?

I've been trying to think of an escape character to use for screen that isn't already used by any of the programs I use, and I've settled on Ctrl+`. The default Ctrl+a is unacceptable for me because ...
3
votes
3answers
9k views

How can I launch multiple screen sessions from a single bash script?

I've written a script (that doesn't work) that looks something like this: #!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done For some ...
2
votes
2answers
731 views

I would like to write a shell script/rc file that automates GNU Screen splits and starts programs within them

I would like to automate a scenario when I am working on a rails project, and I think screen is the perfect way to accomplish this without having to drag and drop multiple windows after every startup ...
1
vote
1answer
683 views

Screen and SSH Tunnel - How can screen session possibly die?

When I start my xsession I setup my SSH tunnel to my VPS. Here is the script the runs on login: matt@HY731AA:~$ more dotfiles/startssh.sh #!/bin/sh ssh-add ~/.ssh/id_rsa screen -dmS ssh /bin/bash ...
2
votes
1answer
919 views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...