bug-parallel
[Top][All Lists]
Advanced

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

Re: Feature request: immediate output with -k option


From: Ole Tange
Subject: Re: Feature request: immediate output with -k option
Date: Mon, 15 Jul 2024 17:04:15 +0200

On Sat, Jun 15, 2024 at 9:09 AM Warren Gish <warrengish@gmail.com> wrote:
>
> I often use “parallel -k” to maintain output order.  When using -k, I've 
> noticed that no output is available from the parallel command until after the 
> first job, which may be large, completes.
>
> It would be helpful if the output from the first job could be made available 
> immediately without buffering.

Use --lb

slowseq() { seq $@ | pv -qL 40 ;}
export -f slowseq
parallel --tag --lb -k 'slowseq {} 10000'  ::: 9900 9800 9700

--tag is only included to make it more visible what is happening.

/Ole



reply via email to

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