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)

0
votes
1answer
12 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
27 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
9 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 ...
0
votes
1answer
21 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
23 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
13 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
17 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
37 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
25 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
24 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
15 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
17 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
36 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
12 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
18 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
37 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
18 views

How to get back my splitted screen after I lost connection

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
47 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 ...
0
votes
1answer
42 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
20 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
68 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
19 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
20 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
63 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
33 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
55 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
32 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
29 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
23 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
17 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
79 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
60 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
80 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
31 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
65 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
34 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: ...
1
vote
0answers
140 views

Can screen add nl (new-line) for each (carriage-return)

Edited: I have data acquisition hardware that sends out serial data via UART into FTDI (serial to USB) device. The FTDI is plugged into USB port and its port name is /dev/ttyUSB0. This device ...
3
votes
1answer
51 views

What is screen's “Multi display mode”?

screen's man page mentions a "Multi display mode" at one place: -x Attach to a not detached screen session. (Multi display mode). It's the only place where "Multi display mode" is mentioned. ...
0
votes
1answer
87 views

Where can I find the screenlog.0 file?

I have to run some scripts in a screen and I used the C-a H command to record the output to a screenlog.0 file when I press the shortcut keys the message is Logfile "screenlog.O" closed. But if I try ...
2
votes
1answer
38 views

GNU Screen - any way to remove password when detached?

Protecting a GNU screen session with a password is good security. However, how does one remove the password if you need to share a session with a colleague? I tried the following to clear it and got ...
4
votes
1answer
72 views

How can I add the session name to my screen status display?

This is my current .screenrc files which is mostly copied from the link in the code #First iteration 2014-09-06, not quite sure of stuff to add # got a fancy hardstatus line noted below hardstatus on ...
2
votes
0answers
65 views

screen command not showing status bar

I have a ~/.screenrc file that contains the following lines: # 2.2) hardstatus = navigation bar @ bottom hardstatus alwayslastline "%H %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" I have to admit ...
2
votes
0answers
60 views

screen with urxvt keybindings

I promise I've been searching thoroughly for an answer... So, my goal is to emulate the standard urxvt "tabbed" behaviour with screen keybinds, i.e. map three keybinds and that's ctrl+left (prev), ...
0
votes
1answer
66 views

What happens to screen session over ssh when connection is lost? [closed]

I ssh to a remote computer, and create a screen session there. Then I lose the internet connection. When I ssh again to the computer, I want to see if the created screen session is still there, so I ...
3
votes
1answer
234 views

Change the parent process of a process?

Is it possible to change the parent process of a process? If yes, how? For example, how does screen manage to attach a screen session and the processes running inside it to different shell ...
0
votes
2answers
28 views

Start Screen session when background programs running [duplicate]

I have Matlab running in a Linux session for almost 2 days, and afraid to lose the computations if my network connection fails. Will moving Matlab to the background and starting 'screen' be the answer ...
0
votes
0answers
34 views

Trying to attach to a screen kills the terminal

I was trying to attach to a screen session on a remote computer, with screen -r, but my terminal got killed (I was trying to attach and see what it is, because I did not remember creating it). Now ...
4
votes
3answers
709 views

How can I resume a screen that I did not manage to detach?

I use the screen Screen visual consoles. To detach a screen I need to press Ctrl+A followed by D but some time a session is closed without detaching it. It appears as (Attached) on screen -list: ...