Xfennec / progress

Linux tool to show progress for cp, mv, dd, ... (formerly known as cv)
GNU General Public License v3.0
8.57k stars 313 forks source link

Question: progress works on tranmission, where in the code does it handle this? #90

Closed jaredmichaelwilliams closed 7 years ago

jaredmichaelwilliams commented 7 years ago

progress works on tranmission, i was just going for a shot in the dark when transmission was in process of running 'Move data file to'. It worked, gave me the right % and data.

[77413] Transmission /Users/Jared/Downloads/Batman- Arkham City GOTY.zip.part 61.2% (6.5 GiB / 10.7 GiB)

however when doing ps aux i couldnt find one of the processes it looks for i.e

progress 2>&1 | sed -e "s/^.*://g" | sed -e "s/, or.*$//g" | sed -e "s/, / |/g" | sed -e "s/^ /sudo ps aux | egrep --color -i '(\/| )+(/g" | sed -e "s/$/)'/g" |bash

Jared 90212 0.0 0.0 2434840 1124 s000 S+ 2:01AM 0:00.00 egrep --color -i (/| )+(cp |mv |dd |tar |cat |rsync |grep |fgrep |egrep |cut |sort |md5sum |sha1sum |sha224sum |sha256sum |sha384sum |sha512sum |adb |gzip |gunzip |bzip2 |bunzip2 |xz |unxz |lzma |unlzma |zcat |bzcat |lzcat)

My question is where in the code is it accessing the underlying process inside Transmission?

Thank you for your time in advance.

Xfennec commented 7 years ago

Please, do not open issues for "questions". Especially for what looks like an illegal download :/ And the question should be directed to Transmission, since progress do not use any special code for this program, so it must use usual coreutils (ps may not show it correctly, tho, have a look at /proc)

jaredmichaelwilliams commented 7 years ago

You guys have a label specifically for questions.

also its not an illegal download dont assume

and i wasnt saying it was specific to transmission. however transmission must have called one of the underlying commands. what i was asking was where that is handled