I am running a simulation command in a server using
ssh, from my terminal.
The simulation is running for 10+ hours. I am expecting output after 15+ hours.
During its execution it was echoing on the terminal some random results. What is important to me is the end results that it will generate during last 30 mins. of the simulation before it ends.
I lost Internet connection so my
ssh broke, but then when I again connected to
ssh, I checked that my program was still running in the remote server.
PID TTY TIME CMD 2063 ? 00:00:00 sshd 2064 pts/14 00:00:00 bash 2156 pts/14 01:19:14 sim-cache 15446 ? 00:00:00 sshd 15448 pts/30 00:00:00 bash 15593 pts/30 00:00:03 sim-cache 15636 ? 00:00:00 sshd 15637 pts/31 00:00:00 bash 15652 pts/31 00:00:00 ps
But since it is running in background I will never see its output.
Can someone tell me how can I bring the running process into current terminal, so that whatever this process echoes here after I can see that in the terminal?