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.

307 questions
278
votes
13 answers

Can I nohup/screen an already-started process?

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in screen. Is there any way to "retroactively" nohup a…
ojrac
  • 2,883
  • 3
  • 16
  • 5
259
votes
3 answers

Moving an already-running process to Screen

My office job routinely sees me connected to a Linux box via VNC. Sometimes I start a remote job on the console, and realize later that it runs much longer than expected. (Should have started that one under Screen in the first place...) I don't want…
DevSolar
  • 2,766
  • 3
  • 15
  • 11
188
votes
14 answers

How to reconnect to a disconnected ssh session

Is there a way to connect to an ssh session that was disconnected? We are having problems with our network connection to a remote site that we are working on separately; however, in the mean time we experience a large number of disconnects due to…
palehorse
  • 4,039
  • 5
  • 27
  • 27
178
votes
8 answers

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen # fails: Cannot open your terminal '/dev/pts/0' I have a script…
sdot257
  • 3,029
  • 5
  • 29
  • 37
169
votes
9 answers

Is it possible to detach a process from its terminal? (Or, "I should have used screen!")

Possible Duplicate: Can I nohup/screen an already-started process? On Unix (specifically, Linux), I've started a job in a regular ssh->bash session. I'd like to leave work soon, but I now realize that the job is going to take several hours. If I…
mike
  • 3,773
  • 11
  • 28
  • 27
110
votes
2 answers

How to re-order windows, change the scroll shortcut, and modify the status bar contents in GNU Screen?

I learned to use gnu-screen and have been using it for the past several weeks. I got a grip of the basics now, and would be very helpful if I get these queries clarified: How do I rename / reorder / move windows in Linux screen utility? For eg.,…
Rangzy
  • 1,201
  • 2
  • 9
  • 5
104
votes
9 answers

How to check if I'm in screen session?

I need it to determine if hitting ctrl+d would disconnect me from server or just close current screen. Is it somehow possible to check if I'm right now in screen session?
wlk
  • 1,603
  • 3
  • 14
  • 19
101
votes
4 answers

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
garconcn
  • 2,328
  • 7
  • 33
  • 45
91
votes
7 answers

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the process to help stability. The only way to make it do…
Richard Gaywood
63
votes
4 answers

How can I launch a screen session with a command over ssh on a remote server from my desktop?

I want to be able to launch screen sessions on remote servers from a single ssh command on my desktop. However, screen seems to need a terminal, which is not available when running a command through ssh. So the obvious ssh root@my.machine screen…
Thomas Vander Stichele
  • 1,045
  • 4
  • 14
  • 16
60
votes
7 answers

How do I know I'm running inside a linux "screen" or not?

The "screen" refers to a program mentioned in How to reconnect to a disconnected ssh session . That is a good facility. But there is a question I'd really like to know. How do I know whether I'm running inside a "screen"? The difference is: If…
Jimm Chen
  • 1,709
  • 5
  • 17
  • 32
54
votes
12 answers

What are useful .screenrc settings?

Basically like some of my own that I've posted below. I'm looking for added functionality to the programme 'screen'. At the very least have a look at the last line for a fantastic 'menu bar' at the bottom of a screen session. ## gyaresu's .screenrc…
Gareth
  • 8,263
  • 13
  • 42
  • 44
45
votes
4 answers

putty and screen and scroll-back buffer

When I use screen inside a putty session, I can't seem to use the scrollback buffer of putty to look at whatever just scrolled off the screen. Instead, I just see what was happening in the putty session just prior to my running screen. What am I…
chris
  • 11,666
  • 5
  • 40
  • 51
43
votes
8 answers

How do I ask screen to behave like a standard bash shell?

Just learned about the screen command on linux - it is genius. I love it. However, the actual terminal/prompt in screen looks and behaves differently than my standard bash prompt. That is, the colors aren't the same, tab completion doesn't seem…
thornomad
  • 531
  • 1
  • 4
  • 5
41
votes
2 answers

Why does redirecting 'script' to /dev/null/ allow 'screen' to work while su'ed as another user?

I was su'ed into a user to run a particular long running script. I wanted to use screen but I got the error message "Cannot open your terminal '/dev/pts/4' - please check." So I Googled around and came across a forum post that instructed to run $…
Ichorus
  • 495
  • 1
  • 6
  • 12
1
2 3
20 21