Questions tagged [gnu-screen]

GNU Screen is a software application that can be used to multiplex several virtual consoles.

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

310 questions
2
votes
4 answers

GNU Screen and .bashrc

I am trying to launch GNU Screen using my .bashrc. I'm almost there: if [ -z "$STY" ]; then exec screen -dR else exec gnome-terminal fi This is wrong though! The first case works, screen launches when I open a terminal. But the second part…
devin
  • 1,246
  • 3
  • 20
  • 27
2
votes
1 answer

Is there a way to configure the 'logfile' directive when invoking GNU screen from the commandline?

I have been using gnu-screen's 'logfile' command to log my session histories when making production changes. I like to log each change in a different directory; this means that whenever I start a new change, I need to execute the :logfile…
Murali Suriar
  • 10,296
  • 8
  • 41
  • 62
2
votes
2 answers

Using CCZE with multiple log files

I am looking for a solution to watch live several logfiles on ccze. Currently I send a tail of each file in a pipe, this pipe is used by ccze for display all logfiles needed. The problem is that some log files are much more used than others, ccze…
anapivirtua
  • 71
  • 1
  • 5
2
votes
1 answer

Windows client for GNU Screen

I'm very happy with Putty running on my Windows machine and keeping all my terminal windows under GNU Screen in my server. However, I wonder if there's a version of Putty (or another software for that matter) that is Screen-aware and which lets me…
Ruggiero Spearman
  • 153
  • 1
  • 1
  • 5
2
votes
1 answer

Is the root user able to administer screen for other users?

We're trying to rewrite a draconian screen session killer for users who leave their screen sessions up for an inordinate amount of time and have in some way or other circumvented our session timeouts. The current method is to find the pid for screen…
Peter Turner
  • 2,178
  • 9
  • 33
  • 45
2
votes
0 answers

Stop gnu screen from asking for a password on screen -rd

Looks like GNU screen considers detach a lock request, and always locks when detached. How do I disable this? I trust all users (myself) on the box, and care little about the security implications.
lwa
  • 21
  • 2
2
votes
2 answers

SCREEN setup tips

How do you use the "screen" tool ? I'm looking for best practices and config tips : To keep clean and ordered sessions on several servers To have a beautiful colored interface To have a fully featured taskbar To get many other features I didn't…
Falken
  • 1,702
  • 5
  • 18
  • 28
1
vote
0 answers

Create a screen. Run said screen as a user. Detach

I'm essentially trying to combo Create screen and run command without attaching and another answer that allowed me to run a script as another user. I want to SSH from Server 1 -> Server 2 and run a script Have the script do a number of things to…
sfxworks
  • 157
  • 1
  • 8
1
vote
1 answer

Can GNU screen leave you at shell prompt after command instead of exiting the TTY?

I commonly need to run a specific screen session with 9-10 windows, most of which need to run either an interactive command, or simply a setup-type of command. I do this via screen -c The pseudo-code for my…
Larold
  • 812
  • 4
  • 13
  • 21
1
vote
3 answers

If run as a cronjob my shell script doesn't launch a screen

Please have a look at the following simple shell script startCleanup.sh: #!/bin/sh screen -d -m -S cleaner /usr/bin/python3 /opt/cleanup.py My crontab looks like this: * * * * * /opt/startCleanup.sh > /opt/cleanup.log 2>&1 When I run this script…
toom
  • 217
  • 1
  • 5
  • 12
1
vote
0 answers

How to use screen with mysql cli?

Here is what is happening. I'm using debian with KDE. I open Konsole. I use ssh to log into my amazon server. All of the following commands are done in the Konsole whiled logged into the amazon server. The screen I get when I log it I will call…
aarelovich
  • 141
  • 2
  • 9
1
vote
1 answer

On Google Cloud, GNU screen just exits with no message - Ubuntu and Debian

On Google Cloud Compute Engine GNU screen is exiting with no message. It works if I "sudo screen" but that is not what I need. The binary is suid root and has correct permissions, and I have also tried compiling my own copy of the latest screen…
keith
  • 11
  • 2
1
vote
0 answers

How to tell screen use use different bash_profile?

How can I tell to screen to use different bash_profile? Problem is we use a technical user to log in, but I edited a custom PS1. Normally I login with putty like: ssh user@host -t "bash --rcfile ~/.profile.custom -i" But screen use the default…
1
vote
0 answers

screen Cannot access pts/0 No such file or directory

I want my script continue to run after ssh session terminate. I have no root access to server. What I tried: autos@autos.tech [~/bit]# ls -la /var/run/screen/ drwxrwxrwx 4 root screen 4096 2017-11-09 18:48 ./ drwxr-xr-x 26 root …
1
vote
0 answers

how to avoid screen termination once the job is done

using a shell script i am ceating multiple screen in which i m running rsync cmnd with below syntax, n i m able to do so. screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" but as soon as rsync completed , the screen which was generated with above…