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.
screen rsync ...
at home but i didnt expect it to take so long when i started.strace -p 7214
read(0, "\n\204C\320\234\33\36\376\36\244H\242\3\1\231\353F[G[SN\244M\0232(\213\247GKh"..., 4092) = 4092 select(1, [0], [], NULL, {60, 0}) = 1 (in [0], left {59, 999998})
tmux
orscreen
.