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
3
votes
4 answers

GNU Screen: one window per screen or one screen with multiple windows?

I've inherited a few sys admin tasks recently and am trying to wrap my head around using screen. The way the previous guy left it, there are four screen sessions running, some of which have two or three windows running within. It doesn't appear…
yalestar
  • 227
  • 1
  • 2
  • 7
3
votes
1 answer

unix screen logging change filename to window name

I know its possible to change the name of the logfile with "set filename" I'd like to have screen write its log files to the name of the window. how can I accomplish this ?
zack
  • 131
  • 1
3
votes
4 answers

How to use cursor keys in vi under screen?

If you run vi/vim in screen, when you press a cursor in insert mode, you get a new line + a character, which is a pain. How can I configure vim to move around instead?
Tim Abell
  • 1,361
  • 3
  • 11
  • 21
3
votes
1 answer

detach screen session

I have an attached screen session where I am running some jobs. I closed its terminal without detaching it because it does not respond suddently. Now by screen -ls I can see it is still attached. But I cannot reattach it without detaching it first,…
Tim
  • 1,487
  • 6
  • 28
  • 43
2
votes
1 answer

/var/run/screen permissions changing to 775 without restart

Good , I am currently having an issue with several of my boxes running CentOS 7.3.1611 wherein the permissions for /var/run/screen are being changed to 775, resulting in the error "Directory '/var/run/screen' must have mode 755".…
sssssss340
  • 21
  • 1
  • 3
2
votes
2 answers

keeping a detached ssh process running *after closing the ssh client*

I ssh in to my ubuntu machine usimg mobaxterm. This works very well. Sometimes I want to keep a process running but exit my ssh session (and exit mobaxterm). I have tried the following but regardless as soon as I close mobaxterm my process on the…
lazarus
  • 121
  • 1
  • 3
2
votes
1 answer

open screen in background and start a process

I want to do the following: After reboot I want to start a screen which then should execute a script. Therefore I searched for crontab and screen and I also did find some answers. However, nothing works for me. I am running a ubuntu linux with…
Tom Tom
  • 27
  • 1
  • 7
2
votes
1 answer

Ubuntu Allow users access to roots "screen" command, also restrict which screens they can attach to

I'm trying to allow a user to connect to the screens that the root user has. When another user does "screen -ls", it shows "No Sockets found in /var/run/screen/S-USERNAMEHERE". In addition to this, is it possible to restrict users to individual…
Toby Mellor
  • 121
  • 1
  • 4
2
votes
1 answer

How to specify GNU screen ACL as part of its command line?

What I'm trying to do is spawn a detached screen session, but as part of the command line that creates it - also modify the ACL list. So right now I have screen -dmS MySession "SomeProgram" "SomeArguments" If I want to modify the ACL of MySession…
PhonicUK
  • 123
  • 7
2
votes
3 answers

Is there any way to launch screen with a background process but have it not terminate when the process exits?

Launching a screen session with a background process using -d -m causes the screen session to terminate when the process exits. Is there any way to get the screen session to stick around after the process exits, but still launch it without any user…
fields
  • 690
  • 1
  • 10
  • 21
2
votes
1 answer

How do I bind a key to a macro in GNU screen from the command line?

The GNU screen utility has a neat feature for binding keys to screen commands or macros. The stuff command is particularly handy to expand some abbreviation to some other string as your typing. For example if I'm in screen and I use my meta key…
Jim Dennis
  • 807
  • 1
  • 10
  • 22
2
votes
2 answers

screen command process id

First of all sorry for my bad english and i am new at linux. When i do this, it can write process id to pid file start () { echo -n "Starting someserver.jar: " java -jar /home/someserver/someserver.jar & echo $! >…
C.T
  • 33
  • 1
  • 4
2
votes
1 answer

Debugging frozen Gnu screen session?

We've been using GNU screen on our jump box to have ssh sessions open to multiple hosts within our private network. One window per host. Recently we've built a new environment and are experiencing frequent screen hangs. Most often when a lot of…
David QC
  • 83
  • 2
  • 4
2
votes
3 answers

ssh -> UNIX screen and keymaps (macbook delete key in particular)

Over the years I've had various keymap issues in UNIX screen through SSH, and I assume others have as well. My question has two parts: When I SSH into my Ubuntu Dapper server (I know, I'm moving to Lenny post-haste:) from my OSX Macbook, the delete…
Eric Drechsel
  • 121
  • 1
  • 1
  • 8
2
votes
1 answer

Is it possible to set a max amount of screens that can be running at once?

I'd like to know is it possible to set a max amount of screens that could be running at once on screenrc? Thanks
dickweed
  • 21
  • 1