Skip to main content
Post Closed as "Duplicate" by Anthon, jimmij, CommunityBot, cas, garethTheRed
edited tags
Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k
Please capitalize!
Source Link
Caleb
  • 71.9k
  • 19
  • 203
  • 232

hereHere is the situation. iI left my pc at home doing an rsync from a 2tb2TB hard drive to another 2tb2TB hard drive (itsit's going to take a while since they are both usbUSB 2.0). iI am now at work and iI have ssh-ed into my home pc. if iIf I do ps aux | grep rsync iI 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 iHowever I want to see exactly what rsync is doing. when iWhen 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. isIs there any way to read stdout for another pts? fyi

$ ps -t pts/0
7214 pts/0    02:14:42 rsync

iI did a little bit of googling and it seems that /proc/pid/fd/proc/pid/fd may hold the answer but imI'm not sure about this...

pP.sS. iI have sudo privileges of course.

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

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.

Tweeted twitter.com/#!/StackUnix/status/79069425743044608
Source Link
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