Skip to main content
1 of 3
mulllhausen
  • 2.8k
  • 14
  • 37
  • 43

view stdout for another pts

here is the situation. i left my pc at home doing an rsync from a 2tb hard drive to another 2tb hard drive (its 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? fyi

$ 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 im not sure about this...

p.s. i have sudo privileges of course

mulllhausen
  • 2.8k
  • 14
  • 37
  • 43