Here is the scenario.
The distribution is Raspbian. I started a program in a SSH session which has continuous output on the screen. Then I suspended it and
disown it to exit the session in order to close my laptop and go to sleep.
When I started a new SSH session later I can see the process is still there so I want to bring it back to the front end to see its status and progress.
Can anyone help me on this? I've googled a lot and tried approaches like
tmux (I didn't use them before issue command). None of them work.
-T option as the target process has children. It failed:
pi@raspberrypi:~ $ sudo reptyr 1583 -T [-] Child is not connected to a pseudo-TTY. Unable to steal TTY. Unable to attach to pid 1583: Invalid argument