I'm looking to access an open terminal, that is, opened locally on my machine, from a remote computer without using tmux
or screen
. There's a few reasons for this, the simplest of which is that I keep landing up with a situation where I didn't plan ahead, run something big on my pc at work, go home and then want to check on it via ssh.
In essence I'm looking for a way to attach to the terminal already running on a computer and view its output.
Now, I know that there are a few threads out there that say you can't do this (such as this one ), and others that simply recommend screen
and tmux
(like this one, this one or this one). What I'm looking for is a way to directly access a running terminal process, or at the very least see the cached output of that terminal. I don't necessarily need to be able to enter commands in that terminal.
Is there a way to do this? Otherwise, any ideas on a hack that could work? I was thinking I could probably find a way to automatically log stdout, stderr and the commands to a file (perhaps a clever tweak on bash history that logs everything?)
But the academic question remains - is there a way to access the content of a terminal if one has not run screen or tmux. I do not know if there is, but it seems plausible that there could be. Hence the question.
– ck4e Jul 28 '17 at 19:34/dev/ptmx
,/dev/null
, or are associated with deleted tmp files (eg./tmp/#6422705 (deleted)
). I'm going to poke around with this a bit and see what comes of it. – ck4e Jul 28 '17 at 19:50script
does that, but then again if you can remember to run your commands inscript
, you can also remember to run them intmux
... – fkraiem Oct 26 '17 at 10:41