On Monday, October 7th, 2024 at 6:28 PM, Russell Senior 
<[email protected]> wrote:

> On Mon, Oct 7, 2024 at 3:54 AM Robert Citek [email protected] wrote:
> 
> > Sounds like you are wanting to manage parallel jobs. Have you looked into
> > using the parallel command?
> > 
> > https://www.gnu.org/software/parallel/
> 
> 
> That's cool! Thank you for mentioning it.
> 
> --
> Russell Senior
> [email protected]

I just realized my little scriptlet didn't run the gp command in parallel, but 
it looks like adding parallel is pretty easy.

function foo () {
        gp -q < $1 > $1.results
        echo "$1 finished: $?" >> process_log.txt
}

export -f foo
parallel foo ::: xaa xab xac xad xae xaf ::: a

my foo() function runs in parallel, taking x?? as a parameter. It has a strange 
syntax, but works like magic.

Reply via email to