This question already has an answer here:
Here is the situation. I left my pc at home doing an rsync from a 2TB hard drive to another 2TB hard drive (it's going to take a while since they are both USB 2.0). I am now at work and I have ssh-ed into my home pc. If I do
ps aux | grep rsync I can see the following:
1000 7214 18.8 0.1 30636 1368 pts/0 S+ 00:52 134:00 rsync -vr /media/master /media/slave
However I want to see exactly what rsync is doing. When I was at home, the standard output was shown in my terminal and the verbose mode of rsync showed which files were currently being copied. Is there any way to read stdout for another pts?
$ ps -t pts/0 7214 pts/0 02:14:42 rsync
I did a little bit of googling and it seems that
/proc/pid/fd may hold the answer but I'm not sure about this...
P.S. I have sudo privileges of course.