Questions tagged [gnu-screen]

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

Filter by
Sorted by
Tagged with
10 votes
2 answers
18k views

How to prevent screen from terminating when command in window terminates

When running 'screen ls' the screen stops with the text [screen is terminating]. I would like screen to keep the session alive and reattach to it to see the output of ls. Of course the real thing is ...
Jarl's user avatar
  • 315
4 votes
1 answer
3k views

Screen -X exec commands not working until manually attached

I have a batch script that starts a java server application inside of a screen. The command looks like this: cd /dir/ && screen -A -m -d -S javascreen java -Xms640M -Xmx1024M -jar ...
James Watt's user avatar
20 votes
5 answers
54k views

How do I use crontab to start a screen session?

I want to create a crontab entry so that it starts screen, starts a gameserver and detaches. This is for in case the server is rebooted and I want it to automatically start this for me. 0 0 0 0 0 (...
Victor's user avatar
  • 381
4 votes
7 answers
5k views

I have a perl script that is supposed to run indefinitely. It's being killed... how do I determine who or what kills it?

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead. I'm one of only two people with access to ...
John O's user avatar
  • 283
1 vote
1 answer
276 views

Some keys not working under screen in vim

When using vim under screen, some keys are not working. Namely, Pressing Alt-Left produces '3D' and Alt-Right produces '3C' Also, pressing Up/Down when scrolling list of files in Command-T plugin ...
Art's user avatar
  • 297
0 votes
2 answers
583 views

Is gnu screen or tmux more stable for keeping running on the server?

I want to keep a screen or tmux session running forever on a Ubuntu server, possibly for running a Clojure web server application so I can tap into the process via REPL at any time. Gnu screen or tmux ...
dan's user avatar
  • 917
1 vote
1 answer
3k views

Howto get exit code of a script started in screen session

I am currently creating a backup script which uses screen to start a backup job with rsync inside a screen session. The backup jobs are started as follows. screen -dmS backup /usr/bin/rsync ... As ...
Bettina's user avatar
  • 11
6 votes
3 answers
12k views

VMware ESXi display guest screen instead of console

I'm using ESXi 4.1 for my virtualitzation platform, and I would like to display one of the guests screen to the host VGA output. Is this possible? I want to do this because my host machine is plugged ...
Marc Torres's user avatar
21 votes
2 answers
14k views

How to tell GNU screen to run .bash_profile in each new window?

When I open a new window in GNU screen, it runs .bashrc but not .bash_profile. In my setup, this results in some environment variables not being set up correctly in that window. How can I tell GNU ...
user9474's user avatar
  • 2,458
0 votes
3 answers
232 views

Screen windows dies

I am using screen with irssi, ssh to some servers. At the moment I have 4 windows "open" in my screen. Two of those windows is "dead". I can't write something in those, for example. How do I "exit" ...
Erik's user avatar
  • 125
12 votes
18 answers
285k views

Remote Desktop Connection Screen is totally black but server is working perfectly

Server is working perfectly but when I do RDC screen is only black. This happened before and I fixed it by powering off the server via KVM/IP, but I don't want do that again. How can I fix this issue. ...
Furkan Gözükara's user avatar
3 votes
2 answers
2k views

Configure GNU screen so that it stores command histories in files

I would like to configure GNU screen such that it stores the command histories of all the different windows in different files. I know by default GNU screen does not store the command histories (of ...
user9474's user avatar
  • 2,458
2 votes
3 answers
311 views

GNU Screen: opening each screen buffer in a separate terminal tab

I'm looking for a Linux terminal that is fully integrated with GNU Screen, i.e. mapping each screen buffer to a separate tab and with full scrollback support - all that inside a SSH session. Is this ...
lzm's user avatar
  • 121
3 votes
2 answers
4k views

in linux screen how do you turn off the status tab?

Is there a way in screen to turn off the status bar? Ideally, only display it when I have 2+ tabs open? What .screenrc entries would accomplish this?
Aaron F.'s user avatar
  • 895
5 votes
1 answer
1k views

send interrupt to window in screen

How can I send a interrupt to a window within screen. I have screen running with several windows. Each of the windows have processes running within them. I wish to be able to send and interrupt to ...
robthewolf's user avatar
8 votes
2 answers
1k views

Does tmux have all the features that screen has? And those screen is missing?

I'm considering switching from screen to tmux, but I've invested lots of time developing an extensive .screenrc, and I don't want to find after many hours of porting it to tmux that tmux can't do ...
iconoclast's user avatar
  • 1,830
8 votes
2 answers
1k views

When using vim with screen the keys ctrl + right and ctrl + left don't work

In the last days i became very addicted of using the combination terminator (in full screen) + screen + vim. But i'm having problems with the ctrl + right and ctrl + left key mappings, they are ...
Dimas Kotvan's user avatar
0 votes
2 answers
1k views

How can I go back in the (GNU) screen command history? (NOT shell command history!)

Currently, when I enter ^a : (control-A followed by ':') to send a command to GNU screen, I can go back one step in the history, and see exactly ONE previous command. This is really annoying, as I'm ...
iconoclast's user avatar
  • 1,830
13 votes
6 answers
58k views

How to scroll back in screen within a ssh session from OS X? [closed]

I do the following: Open Terminal.app Open a ssh session to a remote Linux server Open a screen session on the server Start a program who breaks with many lines of error reporting… How can I scroll ...
Max's user avatar
  • 475
1 vote
5 answers
3k views

Using screen to monitor non-interactive scripts (or some other solution)

I have some autonomous scripts that run commands on remote machines over ssh. These scripts rely on getting stdout, stderr, and the return code of each command run. I want to be able to monitor the ...
Michael's user avatar
  • 11
2 votes
3 answers
318 views

Lock down a linux system with screen

I need to lock down a system so that a group of individuals can log into the server via ssh. When they log into ssh I would like them to be presented with a screen session and locked down to that ...
Spectre's user avatar
  • 21
104 votes
4 answers
41k views

How to reload screenrc without restarting screen?

After modified screenrc, how to see the changes without restarting screen?
garconcn's user avatar
  • 2,418
2 votes
2 answers
3k views

How can I force GNU Screen to flush its logfile?

I am using Screen like this: screen -L -dm -S session1 -c "./game_server -options" to wrap around game servers. I log their output to a file and can send them input with: screen -r session1 -p0 -X "...
Gipsy King's user avatar
1 vote
2 answers
2k views

Centos start script for 'screen'?

I have a program that runs in the foreground so I run it via a 'screen'. Is there a good start/stop/restart template for 'screen'? I need it to pass the commands to the screen and create it if it ...
Will's user avatar
  • 257
3 votes
1 answer
2k views

How to get GNU screen to dynamically set gnome-terminal's title everytime I switch to different windows of a screen session?

Question title says it all. I am not able to tell which window of my screen session I am in, to find that out I am having to view ^aw (window list) and look at the where the * is to tell which window ...
Murali's user avatar
  • 165
1 vote
1 answer
793 views

Destroy a dead window in Screen

I know I can kill the current window using C-k, however it doesn't work for a dead window. Is there anyway to kill it? Thank you. C-a C-k (kill) Destroy current window.
garconcn's user avatar
  • 2,418
0 votes
1 answer
568 views

Linux Screen; How do I make screen persistent with the -X command?

I'm running screen with the following command: screen -dms -X buildscript.py This executes the buildscript.py file and runs it as a daemon. Now, when the build script fails, screen automatically ...
Carlo del Mundo's user avatar
5 votes
4 answers
2k views

How to I use Vim's increment (Control-a) when in a screen session?

Is there a way to re-map Control-a in screen to Alt-a or something else, so I can use Control-A in Vim normally (increments the number under the cursor)?
alesplin's user avatar
  • 228
37 votes
6 answers
32k views

Is there a way to make a "Screen" session survive reboot?

I am using the Screen utility and would like to preserve the session when the machine reboots. If not possible may be you can recommend other alternatives to Screen that would allow to preserve the ...
Sergey G's user avatar
  • 485
2 votes
1 answer
130 views

Prevent Screen from creating sub shells

I'm running a Linux system that starts a custom text mode application from the .bashrc. The users are getting disconnected due to network dropouts. I had the idea that I'd use screen to allow them to ...
Walter's user avatar
  • 1,057
0 votes
1 answer
403 views

GNU/Screen - Large UTMP file and memory usage

I'm running a Fedora 12 x86-64 OpenVZ VPS and screen is using lots of virtual memory (98000+). I've also noticed that the UTMP file grows enormous over time: [root@demon~]$ date Wed Sep 8 22:02:58 ...
user avatar
111 votes
9 answers
164k views

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 ...
user avatar
7 votes
2 answers
8k views

Password for GNU screen lockscreen command?

I have set a password for screen sessions in my .screenrc. It works great, any time I need to re-attach to a screen session I need to enter the password. There is another feature where you can ...
bawkstoo's user avatar
4 votes
6 answers
2k views

What are the benefits of using screen?

man screen: Screen is a full-screen window manager that multiplexes a physical ter‐ minal between several processes (typically interactive shells). Each virtual terminal provides the ...
meder omuraliev's user avatar
2 votes
1 answer
956 views

Screenrc Settings to get status of Remote Server

I frequently use ssh within screen to connect to a set of machines. It would be ideal to have the caption line show information about the server that I am ssh'd into (eg machinename, uptime and info ...
User1's user avatar
  • 2,556
4 votes
2 answers
1k views

screen / autossh question: easiest way to transparently integrate screen into my ssh?

I'm a bit new to screen and autossh: I'm simply looking to "fully automate" my ssh sessions, make them implicitly persistent, and have them automatically restore should my connection drop. I've ...
user avatar
1 vote
2 answers
2k views

Getting a custom .bashrc available in ssh session

Currently, we have quite a lot of shared ssh logins to various servers, and my colleagues wouldn't like it if I fiddled with the default shell to much. I do however have quite a list of aliases and ...
Wrikken's user avatar
  • 991
1 vote
1 answer
1k views

screen not setting $TERM to screen

I have a problem with gnu screen. Computer 1: open terminal $ printenv TERM xterm-color $ screen $ printenv TERM screen Computer 2: open terminal $ printenv TERM xterm-color $ screen $ printenv ...
gdelfino's user avatar
0 votes
2 answers
342 views

Is there a way to block screen's multi display mode (-x) completely?

I'd like to configure screen to only allow attaching to detached sessions and not to attached sessions, even if they're from the same user. Is there a way to accomplish this? I couldn't find anything ...
toupeira's user avatar
  • 121
0 votes
2 answers
612 views

automatic ssh logout not working due to screen caption setting

I have set up an automatic logout for idle ssh session using "ClientAliveInterval 7200" However I do not get logged out everyone else who uses the server gets logged fine. I have tracked the ...
Alistair Prestidge's user avatar
3 votes
2 answers
6k views

Terminal Width issues with Linux Screen

I'm having issues where when I'm in a regular SSH terminal, with $TERM set to xterm-256color, and the terminal width is very small (narrow) in Linux Screen. I'm running Arch Linux. When I'm in the ...
drewrockshard's user avatar
13 votes
4 answers
9k views

Run (GNU) Screen from script

I would like to launch some application inside screen session but from a script. Without script I would just launch screen, then open N windows with crtl-a-c and execute programs in each windows. I ...
radius's user avatar
  • 9,653
4 votes
2 answers
6k views

How to automate starting a multiuser screen session with adding acl to another user?

I often start a screen session, issue a ":multiuser on" command and then ":acladd someuser". Is there some way to get with a single shell command a screen session to start with these two commands ...
GJ.'s user avatar
  • 539
2 votes
1 answer
353 views

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 ...
Murali Suriar's user avatar
6 votes
4 answers
3k views

Can I create and manipulate unix "screens" in a script?

I have a work environment on my Ubuntu laptop in which I want to use three different screens. Eg. in terminal, I usually write screen -S mywork run_server_1 then, ctrl-a c to create a second ...
interstar's user avatar
  • 1,321
13 votes
1 answer
7k views

.screenrc - multiple regions on launch

I know it's possible, but I can't for the life of me figure out how, to launch screen with one window in split region mode? ie: I have screen set to open multiple windows on launch, but want window 0 ...
user avatar
1 vote
1 answer
2k views

screen -Amds screenname /patch/to/script.sh don't work only on debian

I have a problem with screen software, when I try to start screen with options screen -Amds screenname /patc/to/script.sh - nothing happens, it's a problem only on Debian system. On CentOS and FreeBSD ...
user43925's user avatar
10 votes
2 answers
7k views

Wrap current session in a screen session

I started an big operation, but I didn't start a screen session, So i can't disconnect without canceling the operation. Is there a way to inject screen so that the operation continues and sends its ...
Bob Fanger's user avatar
5 votes
2 answers
8k views

Running screen without root

I recently updated screen on my server and for some reason when logged in as a normal user I can no longer create a screen session. If I run sudo screen it works. It's probably a permissions error ...
digital's user avatar
  • 345
0 votes
3 answers
1k views

How to kill all screens that has been up longer then 3 weeks?

Im creating a script that i am executing every night at 03.00 that will kill all screens that has been running longer than 3 weeks. anyone done anything similar that can help? If you got a script or ...
Darkmage's user avatar
  • 323

1
3 4
5
6 7