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.

309 questions
281
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,913
  • 3
  • 17
  • 5
262
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,796
  • 3
  • 16
  • 11
195
votes
15 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,179
  • 5
  • 28
  • 27
179
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,039
  • 5
  • 29
  • 38
171
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,853
  • 11
  • 29
  • 27
114
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,241
  • 2
  • 9
  • 5
107
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,643
  • 3
  • 14
  • 19
103
votes
4 answers

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
garconcn
  • 2,378
  • 7
  • 33
  • 46
99
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
64
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,055
  • 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,413
  • 13
  • 43
  • 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,784
  • 6
  • 41
  • 51
44
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
  • 541
  • 1
  • 4
  • 5
41
votes
9 answers

Using ctrl-arrow keys with PuTTY and screen

I searched and couldn't find a solution for this anywhere. I'm using PuTTY from Windows to connect to various servers where I run bash and screen. It seems bash works fine with ctrl-arrow keys to jump word-to-word on the command line but within…
kbosak
  • 522
  • 1
  • 6
  • 10
1
2 3
20 21