How may I read the EXISTING output content from another terminal, like an SSH terminal?
The scenario is I ran a program in a GUI session but later on I need to read its output remotely without touching its GUI session (I know I can if I use VNC). I did a bit search in StackExchange but their stories are different.
https://unix.stackexchange.com/a/72334 gives a solution to redirecting its FUTURE output towards the remote terminal but still, the EXISTING output is missing. Any solution to this?
screen
running in your shell. – Philippos May 26 '17 at 11:41screen
is the solution for scenarios like this. It's highly unlikely that this happened only a single time to the OP and now he is sitting in front of his machine waiting for a solution to go on. He rather is looking for a way to handle this situation as it may happen any time, like so many others who were glad to be pointed toscreen
instead of being told "no way". If the OP tells us I'm wrong, I'll apologize, but I also think of future readers. – Philippos May 26 '17 at 11:56