On Mon, Dec 18, 2017 at 12:11 PM, Pacho Ramos <[email protected]> wrote:

> I am trying to let users to get meaningful time remaining measurements from
> the parallel output.

Use --bar.

The output from --bar is deceptive: When output to the terminal it
looks like a walking bar, but in reality the format also contains data
that can be used by zenity:

             seq 1000 | parallel -j30 --bar '(echo {};sleep 0.1)' \
               2> >(zenity --progress --auto-kill) | wc

The format is:
\r
# $eta_seconds sec $arg\r
$pct_complete\r
the bar that you see

So if you read that output with \r as your line separator, then you
should fairly easily be able to get the progress information simply by
looking at every third line.


/Ole

Reply via email to