Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Before using this tag, read the "Which site is more appropriate?" section of the tag wiki.

screen (GNU Screen) is used to create virtual terminals, which run by their own when not under direct user control. This is especially useful while working with a remote system, when a disconnect can occur at any moment. In this case, the screen session will continue to execute and you may reattach a running screen later.

Screen also allows you to execute multiple commands in a single terminal without losing control over them.

One additional trick is that a single virtual screen can be used by several users simultaneously, allowing them to guide and observe actions of each other.

Which site is more appropriate?

If you intend to tag your question with this tag, consider if the question is more suitable for other Stack Exchange sites:

1022 questions
0
votes
3 answers

embedded linux serial terminal multiplexer

I have built a custom embedded system using debian 6.0. using /etc/inittab i have made several (8) processes running on different /dev/ttyX terminals, which i can switch between using Alt+FX key combination. the thing is using this setup i need to…
aliz
  • 1
  • 1
0
votes
1 answer

Screen cant find file on ArchLinux

On my ArchLinux server, I run Screen for background jobs. When I run screen build.sh, I get the following error message: - Cannot exec 'build.sh': No such file or directory. I changed my script on my computer, then copied it to the server and…
0
votes
1 answer

Python script does not run after logging into computer remotely using "Screen"

Laptop A has python file "file1.py". Computer B has python file "file2.py". I want to remotely enter into Computer B and run the python script file2.py. I am using SCREEN, and below is my code. import os import time os.system('screen -S Test -d -m…
Govi
  • 1
  • 4
0
votes
1 answer

Pipe Screen to PHP (or any function for that matter)

I'm looking for a way to pipe the output of the *nix screen command to another program. In theory I would like to be able to do something like: screen -S test | php testscript.php and testscript.php receive it through php://stdin However I am open…
Nick Q.
  • 3,947
  • 2
  • 23
  • 37
0
votes
2 answers

How can we run connect-standalone with the same connector with two different configurations?

I am using a sink connector with two different sinks(of the same type), the connector needs to be invoked with two different configuration. Currently, we are dealing with that using screen: launchScript.sh screen -dmS conn-one runConnector.sh…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
0
votes
1 answer

How can I pass multiple arguments to script invoked within screen command?

I am creating a detached screen, player, that runs the script, player.sh, which has multiple arguments from AR, array. AR=('foo' 'bar' 'space' 'bat') screen -S player -dm bash -c "/home/deanresin/scripts/player.sh ${AR[@]}" but it gets parsed…
deanresin
  • 1,466
  • 2
  • 16
  • 31
0
votes
0 answers

Run commands from a file in separate detached sessions

I'm trying to run 150+ commands that require a prompt of a yes or no depending on the output of these commands which needs to be manually verified. I'd like to run all these commands at the same time because it takes about 30 to 60 seconds to run.…
SomeGuyOnAComputer
  • 5,414
  • 6
  • 40
  • 72
0
votes
0 answers

Run python script remotely using screen

I am using intel upboard as remote machine and MacBook (using Ubuntu Linux) as my local machine. I have python script A.py on local machine which has some variables (lets say a and b). I want to pass the values of the variables to remote file lets…
0
votes
2 answers

Hudson-CI launched screen session terminates when task ends

The main problem I'm having is to background a screen session from Hudson-CI. The shell steps are that I need to start a screen session from a script that is launched by another script. Heres' a simple…
cybertoast
  • 1,343
  • 13
  • 19
0
votes
0 answers

How to filter undesired output in uart connection with screen

I'm connecting to an IP Camera's uart pins with the command : sudo screen /dev/ttyUSB0 115200 and I got a root shell but it keeps flooding the console so I can't interact clearly with it ... do you have an idea how to make it stop flooding and just…
Neolex
  • 235
  • 3
  • 15
0
votes
1 answer

Disable GNU screens selection buffer / clipboard management

I'm running GNU screen-4.6.1 in a graphical terminal emulator on Gentoo Linux. Whenever I detach from a session (e.g. Ctrl+a, d) or attach to a session (e.g. screen -r), my current Primary Selection and clipboard buffer appear to get emptied. I can…
1N4001
  • 174
  • 8
0
votes
1 answer

How do you specify a tab in .screenrc?

According to this website, you can change to command key sequence used by the Unix "screen" utility like this: escape ^Bb # Instead of Control-a, make the # escape/command character be # Control-b How would you make it…
Ethan
  • 57,819
  • 63
  • 187
  • 237
0
votes
1 answer

bash works alone but fails when running in screen

I have this bash script that starts with for d in /data/mydata/*; do echo $d filepath=$(echo $d | tr "/" "\n") pathArr=($filepath) # fails here echo ${pathArr[-1]} It runs fine when I just call in on command…
bhomass
  • 3,414
  • 8
  • 45
  • 75
0
votes
1 answer

Terminals are not working with USBSerial on an Arduino DUE. Ports are ok

I have firmware installed on an Arduino DUE from a different mac, it is designed to interface with a Matlab-based application. It has been tested and known to work. I am attempting to modify the firmware from the mac in my office, but I ran into a…
Edgar Brown
  • 253
  • 2
  • 11
0
votes
0 answers

Killing a java process safely on windows

i want to kill a java process through a batch file, but safely. The problem is, when i use taskkill /IM java.exe it wont kill the process because java doesn't allow it. When i use taskkill /F /IM java.exe it works, but there is the risk that files…
K. Miller
  • 51
  • 1
  • 7