Terminal output på anden terminal

Oprettet onsdag 24 juni 2020


+Hvordan bruges screen [DK]



Eks. tty1 på én computer vises på en virtuel terminal på anden computer.

Dette virkede for mig:

Brug et tastatur på computeren "A" (dvs. den fysiske computer, der skal styres), kør: screen -q

Tilslut med ssh fra computeren "B" til computeren "A".

I ssh-sessionen skal du skrive: screen -ls for at få et session-id til at oprette forbindelse til (4 cifre i rækken, der indeholder tty).

Opret forbindelse til ovenstående session med: screen -x <session id> ... ved hjælp af session-id-nummeret modtaget fra skærm-lls-kommandoen ovenfor.

Alt, der er indtastet i enten "session", vil ske i begge "sessioner", så for eksempel at skrive screen -d vil afslutte begge sessioner.

https://unix.stackexchange.com/questions/72320/how-can-i-hook-on-to-one-terminals-output-from-another-terminal


How to Use Linux’s screen Command

With the Linux screen command, you can push running terminal applications to the background and pull them forward when you want to see them. It also supports split-screen displays and works over SSH connections, even after you disconnect and reconnect!

What Is the screen Command?
The screen command is a terminal multiplexer, and it’s absolutely packed with options. To say it can do a lot is the granddaddy of understatements. The man page runs to over 4,100 lines.

The following are the most common cases in which you would use the screen command, and we’ll cover these further in this article:

The standard operation is to create a new window with a shell in it, run a command, and then push the window to the background (called “detaching”). When you want to see how your process is doing, you can pull the window to the foreground again (“reattach”) and use it again. This is great for long processes you don’t want to accidentally terminate by closing the terminal window.
Once you’ve got a screen session running, you can create new windows and run other processes in them. You can easily hop between windows to monitor their progress. You can also split your terminal window into vertical or horizontal regions, and display your various screen windows in one window.
You can connect to a remote machine, start a screen session, and launch a process. You can disconnect from the remote host, reconnect, and your process will still be running.
You can share a screen session between two different SSH connections so two people can see the same thing, in real-time.
+Hvordan bruges screen [DK]
se mere : (resten)
https://www.howtogeek.com/662422/how-to-use-linuxs-screen-command/


Copyright (C) 2020 Smarken.net
Om ZIM.smarken.net

hit counter


Backlinks: Teknik 1wiki:Linux:Generelt:Terminal