[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on optimizing GNU Parallel with multiple lines of search pa
From: |
Ole Tange |
Subject: |
Re: Question on optimizing GNU Parallel with multiple lines of search parameters |
Date: |
Fri, 19 Aug 2016 21:00:13 +0200 |
On Wed, Aug 17, 2016 at 9:34 PM, Dave Florek <dave.a.florek@gmail.com> wrote:
> <command>| parallel <command> | parallel <command> >> file
> <command>| parallel <command> | parallel <command> >> file
> <command> | parallel <command> >> file
> <command> | parallel <command> >> file
Put this into the file 'doit':
<command>| parallel <command> | parallel <command>
<command>| parallel <command> | parallel <command>
<command> | parallel <command>
<command> | parallel <command>
Then run:
cat doit | parallel -kj0 > file
That way you can run the 4 lines in parallel and make sure there is
not two programs writing to 'file' simultaneously (which may end up
mixing output).
/Ole