Hot answers tagged screen
you don't see actual terminals all that often anymore, but for instance the Linux text consoles on (CTRL +) ALT + F1 through F6 are considered terminals. xterm is a terminal emulator for systems running the x-window system and a graphical user interface. It provides only a single terminal, typically running a single process (an interactive shell by ...
Looking at it from the perspective of what's similar between xterm and screen: First: we're takling about emulations of this kind of real hardware device, a terminal (VT100 in this example): (from Wikimedia commons) xterm emulates one terminal showing it as a GUI window on screen screen emulates multiple terminals, but does not actually emulate the ...
They are fundamentally different. I think the main difference is: Screen allows you to detach the session and reattach it later from a different place. For example you might have some important process running in your xterm but unfortunately your monitor breaks and you can no longer use your computer. If the process runs in screen you could now 'ssh` into ...
You've injected the characters Ctrl+A, H and Return into the application (bash) running in the Screen window. The string that is passed to stuff is not parsed for Screen escapes. screen -S test -X log on seems to work, or screen -S test -X log to toggle as you want.
According to this source it's the key combination Ctrl+a and then x. It signifies locking the screen and unlocking it with your password.
How about: ssh user@host -t screen -r
I must recommend tmux in you case, I have my tmux-setup-script: #!/bin/sh tmux new-session -d -s rabin tmux new-window -t rabin -n 'Server1' 'ssh firstname.lastname@example.org' tmux new-window -t rabin -n 'Server2' 'ssh email@example.com' tmux new-window -t rabin -n 'Server3' 'ssh firstname.lastname@example.org' tmux new-window -t rabin -n 'Server4' 'ssh email@example.com' tmux new-window -t ...
Rather than attempt to coax screen into merging the outputs I'd do the following. Change each bfgminer so that they log to their own file like so. command /home/pi/Mining/bfgminer --scrypt -c miner.conf | tee bfgminger1.log Then use the following tail command in a 5th screen so that I can watch the output from all 4 simultaneously. tail -f ...
I eventually found the answer for myself on this page. The machine I was running rtorrent on had Ctrl-S and Ctrl-Q mapped to stop and start screen output. Unmapping these got things working again.
Your script doesn't work because ^ introduces a control character sequence. The two-character ^A stuffs a Ctrl+A character, which bash interprets as the command to go to the beginning of the line. You need to use \^ instead. screen -p 0 -S mc -X stuff 'cd ...
After looking through the other answers and perusing the tmux man page I settled on the following bindings for now: bind-key S choose-window 'join-pane -v -s "%%"' bind-key V choose-window 'join-pane -h -s "%%"' This will let you interactively select the window to join, and mirrors my lowercase s/v bindings to create new vertical/horizontal splits. If ...
Only top voted, non community-wiki answers of a minimum length are eligible