screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag /monitors.

learn more… | top users | synonyms (1)

5
votes
8answers
323 views

awk or sed command to match regex at specific line, exit true if success, false otherwise

I need to determine if a file contains a certain regex at a certain line and to return true (exit 0) if found, and otherwise false. Maybe I'm overthinking this, but my attempts proved a tad unwieldy. ...
0
votes
1answer
15 views

ssh -> screen -> ssh - how to kill remote screened ssh without killing original ssh session

I keep a screen session running on a dev box at work, and I ssh into my dev box and resume my screen session while I'm at work. From there, I hope to other machines. Occasionally, I find myself ...
0
votes
1answer
14 views

Showing login message when connecting to Screen

I have added this to .profile: [ -z "$STY" ] && screen -Rd "work" When connecting to a remote machine via ssh, the automatic attachment to screen is hiding the server's motd (message of the ...
2
votes
1answer
21 views

Prevent “Screen” session weird characters

Logged into a screen session, when I press Backspace, Del, Down, Left, or Right while there is nothing for those keys to do, then a weird character appears that does not affect the input. The ...
2
votes
1answer
19 views

Select screen in detached screen session [duplicate]

In screen there is a kill command, which kills the current window. This command can be sent even to a detached screen session by running: screen -S SessionName -X kill This works to kill the ...
1
vote
1answer
22 views

emacsclient connection refused

I am running emacs in daemon mode and I got dissconnected from the server on which it was running. After re-connect, when I run emacsclient -nc I get the error connect localhost port 6012: ...
0
votes
1answer
7 views

Screen Split mostly doesn't work Ctrl + A, Shift + s and Crtl A, Shift / never works

I am using PuTTY and trying to use the screen shortcut commands in the terminal, and am getting very frustrated. I found that I could sometimes get: Ctrl + a, Shift s to work, seems to work more ...
1
vote
1answer
15 views

I cannot use the keyboard shortcut <ctrl>+<alt>+<enter> in matlab running in emacs running in screen

In my usual setup, I use use matlab-emacs to run Matlab through the emacs gui. I run matlab and emacs on a linux server, and use ssh and X forwarding so this all shows up on my local ubuntu laptop. ...
1
vote
1answer
33 views

How to prevent GNU screen from clearing the screen when terminating?

When I run $ screen id all I can see is [screen is terminating] message in the top of the screen. What I want to see is the output of the id command and the [screen is terminating] message. I can ...
1
vote
0answers
24 views

Byobu - New window with same ssh session?

Is there a way to configure Byobu to use same ssh session in a new window. For e.g. Open Byobu window ssh into a remote host Press 'F2' to open a new window. This opens the terminal with ...
2
votes
1answer
36 views

Linux screen: Clearing Screen List

Though I have the feeling the answer might be already out there, after reading several questions I did not manage to solve my problem. Apologies in advance in case of duplication. Current Situation: ...
0
votes
1answer
52 views

Trying to compile GNU Screen

I am trying to compile GNU Screen in my home folder on a machine where I don't have super user rights. I am taking GNU Screen version used by Linux from Scratch. tar xvzf screen-4.3.1.tar.gz cd ...
1
vote
1answer
23 views

How to access screen created by other users?

I login as root and can not see the screen created by other others using screen -ls. I think the root user could have way to access those screen, but I can't find useful options of screen: Use: ...
2
votes
1answer
40 views

capture exit status from screen

I have a long-running command that I've been running in screen so as to be able to interact with it when it encounters bugs. But I'd also like to be able to start it via another shell script (which ...
1
vote
0answers
16 views

Where are AFS tokens stored, and how do I get them into running Screen session

I have the following situation, I have a running GNU screen session where I can't access AFS anymore - my token has expired. I can however access it from a new shell. The difference to this question ...
1
vote
1answer
36 views

running screen in a shell can't find sessions but running screen during ssh login can

I am using the RemoteLoginAutoScreen script to start a screen session when I ssh into a host. Differences from linked script: I am using zsh and the RemoteLoginAutoScreen uses bash The problem that ...
0
votes
0answers
32 views

screenlog in multiple files

I want to log multiple output of serial lines with screen. I use the following: screen -L /dev/ttyUSB0 115200 screen -L /dev/ttyUSB0 115200 Screen logs the output in ONE single file screenlog.0 ...
1
vote
1answer
16 views

Working with screen via another screen session

I connect to Host1 using ssh and start a screen session. From one of those windows I ssh into the Host2, which launches a screen session on login. How can I create new/switch between screen windows ...
1
vote
1answer
31 views

dropbox process stops when I log out of ssh

I tried every solution from How to run Dropbox daemon in background? and nothing solves my problem: Basically, I already installed dropbox on my Ubuntu 12.04LTS headless server. I got init.d setup ...
1
vote
0answers
50 views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
1
vote
2answers
26 views

Why doesn't GNU Screen split show up for remote user?

I have a screen session running on my local machine: ~/test@example.com$screen -S pair Then, turn on multiuser: ctrl-a:multiuser on Finally, allow the user pair to connect to the session: ...
1
vote
1answer
26 views

How do I prevent the Keyboard Interrupt from being sent through the Screen program

I am making a python program, whose output (not input) can be viewed via the screen program. However, the problem is that doing this allows the user to turn off the program via the Keyboard Interrupt ...
1
vote
0answers
20 views

How do I use the “screen” command if I don't know what the ps or tty the program came from?

I am making a python program that launches on bootup, and I would like it so that I can interact with that program via the "screen" command, so that if I need to talk to the progarm via a different ...
0
votes
0answers
19 views

Vi buffer contents stay on-screen after using screen commands

In shell terminal, echo $TERM --- prints xterm Now i do vi somedoc and exit, vi contents disappear from the shell screen and the shell's previously ran commands are visible. So far, all good. Now ...
0
votes
3answers
47 views

Restore a screen session after shutdown

Not concerned with conventional attaching and detaching, I'm talking about restoring a screen session after shutting down my system entirely. I usually have changed to various directories depending ...
0
votes
0answers
14 views

GNU screen doesn't work under user “none”

GNU screen simply exits with 0 exit code after attempt to start it as user none. $ screen $ echo $? 0 Didn't find anything related in documentation or google. Is it a bug or feature?
1
vote
1answer
27 views

Set up default GNU screen “screens”

As the title says, I would like to set up GNU screen on my headless CentOS box such that when it starts up with some screens already running. My .bashrc file runs screen on the first login with ...
2
votes
1answer
26 views

Keep GNU screen attached to device

I'm using screen /dev/tty.usbmodemxxxx to debug a physical device. An unavoidable part of my workflow disconnects and reconnects the device, causing screen to terminate; so I need to start it it up ...
0
votes
1answer
41 views

restore idle screen session under FreeBSD

I use GNOME desktop environment under FreeBSD. I had multiple tabs in GNOME terminal 2.26 and in each tab I had an ongoing screen(4.00.03) session. I logged into one of the remote servers with SSH and ...
0
votes
3answers
43 views

ssh from screen leads to unknown terminal error

I'm trying to make an ssh connection (via lsh) from one Ubuntu host to another from within screen. If I try to run mc right after that I get the following error: Unknown terminal: screen-256color-s ...
0
votes
0answers
27 views

How to get back my splitted screen after I lost connection with “screen”

I was executing the screen command with a splitted window in my CentOS server then I lost connection to it. I reconnected to my server and I did screen -r to get my screen back but now I don't see ...
1
vote
1answer
57 views

Using cron to start a process on a terminal without using screen?

I want to start a process in a terminal using cron. I want the process to start in a terminal, so that I can continuously see the output of the process on the terminal, and kill it / restart it etc. I ...
1
vote
1answer
80 views

How to run a script on a remote machine using the screen command and ssh?

I'd like to run on a list of servers and run remotely a script while using screen. Manually, I'd do: screen -RD ./run_script and manually remotely I'd do: ssh root@server "screen -RD && ...
1
vote
1answer
27 views

Filter screenlog with screen command

Pressing Ctrl+A, H, lets me log output of the screen command. However, the output file is too large. Is it possible to apply a grep-like filter so that I can control what gets logged? For example, I ...
1
vote
1answer
94 views

Escape sequences for function keys (F1-F12), especially F11 and F12

I want to use the terminal multiplexer byobu, so I need to use the function keys (F1-F12). However, I am accessing a remote machine via SSH, so I need to send function keys over SSH. (I'm running ...
0
votes
0answers
30 views

How to print screen command output

Running a screen cmd in my tcl scrpit. I would like to print the output to screen coomand in my log book file. is there any option to print the output in log file ? My command is send_unix_cmd ...
0
votes
1answer
24 views

JAR file terminates unexpectedly without error

I have a JAR file that I'm running in a screen session using java -jar <myjarfile> and for some reason it stops running at unexpected times. I'm redirecting both the StdErr and StdOut to ...
1
vote
1answer
106 views

ttyUSB0 serial port crashes and locks, requires computer reset

I posted this question on stack overflow already but after looking up similar questions I realized this is a much better place for it (and it only got 8 views after 10 hours on a Sunday). If necessary ...
0
votes
0answers
48 views

Black screen trying to install CentOS 6

I've got a windows 8.1 Acer Laptop and I'm trying to put CentOS 6 on it as a dual boot set up. The laptop doesn't have a CD drive. I've already partitioned my hard drive. I've used Unetbootin to put ...
4
votes
1answer
58 views

Screen: can I execute commands and split the window when starting screen?

I use the screen command on several servers, where I monitor several log files. I arrange the log files to my preferences with several splits and by naming the regions. Sometimes the server gets ...
2
votes
1answer
35 views

screen: ‘-S sessionname’ vs. ‘-t name’

What's the difference between screen -S <sessionname> and screen -t <name>? It seems that both assign a name to the newly created screen, which can be reattached using this name.
1
vote
1answer
37 views

GNU Screen window rename nuisance

I like to pop up a screen session with pre-opened SSH connections to the primary servers that I administrate at the office. I give these windows each a very brief name, typically 2-4 characters, so ...
1
vote
0answers
35 views

Capturing screen of “perf top” or other interactive programs

I'm trying to write a script to capture output of perf top Similar to top, perf top detects the screen size and fill information to the screen. But sadly unlike top which has a batch mode, perf does ...
1
vote
1answer
23 views

Screen bind key requires extra Enter (RET) key

I was playing around with GNU Screen's configuration and put the following configuration in ~/.screenrc: bind l eval 'exec ls' So, now when I type C-a l, it runs ls under the current directory. ...
1
vote
1answer
108 views

Issue Using Crontab to Create/Restart Screen and Run Command

I want to have a certain script (rails rake task) running on my server at all times - it basically populates my DB using a live feed. I can create a screen (http://linux.die.net/man/1/screen) and run ...
0
votes
0answers
96 views

Issues with Screen - Running Minecraft in a while loop through a screen session

So two days ago I changed my startup scripts for my minecraft server. Problem is, after about 3 hours, the screen for it that I was monitoring "mc" vanished and refuses to list when using -ls. The ...
1
vote
2answers
97 views

Show output of a command run inside screen if it exits with errors

I am using the screen command for starting server running in foreground. But in case there is an error when starting server I am not able to see the output of command. I have to run it again without ...
0
votes
1answer
37 views

zsh alias with linefeeds, commas and quotes

In my zshrc I have an alias like this: alias sl='screen -list' It fits my need (seeing what screens I have running), but the output is rather ugly: [pts/7]~% sl There are screens on: ...
0
votes
2answers
90 views

How to set tmux terminfo to screen-256color? [duplicate]

If I do not use tmux my terminal is the following: ~$ echo $TERM xterm If I use tmux by adding the following into .bashr # tmux configuration tmux attach &> /dev/null if [[ ! $TERM =~ ...
2
votes
2answers
37 views

Replace screen process from within screen

I have configured my shell to exec screen when it starts, unless it's already running within a screen session. So in a TTY, the process tree will look like something like this: ...