Re:Show HN: Linux tool to show progress for cp, rm, dd, etc.
by lobster_johnson on Saturday July 12, 2014 @11:59AM
(#8024867)
Entirely feasible, as far as I know; OS X lets you discover processes and access their devices. OS X, being BSD-based, doesn't have a /proc file system; instead, you have to use sysctl() to get at the data.
Re:Show HN: Linux tool to show progress for cp, rm, dd, etc.
by gaadd33 on Saturday July 12, 2014 @11:38AM
(#8024811)
Just hit ctrl-t to get status on OS X.
Re:Show HN: Linux tool to show progress for cp, rm, dd, etc.
by mef on Saturday July 12, 2014 @05:27PM
(#8025832)
ctrl+t doesn't show percent complete
Re:Show HN: Linux tool to show progress for cp, rm, dd, etc.
by AdamGibbins on Saturday July 12, 2014 @11:15PM
(#8026521)
Yes it does
aeg@bigwibble ~/ % cp bigfile /Volumes/data_sd1
load: 1.60 cmd: cp 17686 uninterruptible 0.00u 0.09s
bigfile -> /Volumes/data_sd1/bigfile 1%
Re:Show HN: Linux tool to show progress for cp, rm, dd, etc.
by mef on Sunday July 13, 2014 @12:13PM
(#8027752)
Here's me hitting it 4 times:
[/tmp]$ cp bigfile bigfile2
load: 1.78 cmd: gcp 93420 running 0.00u 0.04s
load: 1.78 cmd: gcp 93420 running 0.00u 0.10s
load: 1.80 cmd: gcp 93420 uninterruptible 0.00u 0.16s
load: 1.80 cmd: gcp 93420 uninterruptible 0.00u 0.26s
[/tmp]$
I'm not too familiar with what file libs or utils can be used to handle this as the author says this relies on a linux specific header file and tool.
See https://github.com/Xfennec/cv/issues/6