News for hackers. Stuff that matters.
Re:Pipe Viewer – A Unix Utility You Should Know About by heinrich5991 on Wednesday November 20, 2024 @03:08PM (#42197619)
There's also `progress` which works for tools mainly operating on a single file, but unlike `pv`, you don't have to start the tool differently. It'd e.g. work nicely for the `gzip` example. Just call `progress` on a different terminal while `gzip` is running.
Re:Pipe Viewer – A Unix Utility You Should Know About by dividuum on Wednesday November 20, 2024 @06:38PM (#42199327)
I was curious on how that’s supposed to work, so I took a quick look: It scans /proc for known commands, then looks up file descriptor information via their fd/fdinfo directory to get size/seek positions and then shows a percentage of the largest file.
Re:Pipe Viewer – A Unix Utility You Should Know About by fwip on Wednesday November 20, 2024 @09:57PM (#42200650)
pv also allows this, but you have to look up the process id manually, and pass it to the -d flag.