[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems to reuse --eta output

From: Ole Tange
Subject: Re: Problems to reuse --eta output
Date: Wed, 3 Jan 2018 01:16:53 +0100

On Mon, Dec 18, 2017 at 12:11 PM, Pacho Ramos <address@hidden> 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:
# $eta_seconds sec $arg\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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]