Re: [gentoo-user] Any way to run multiple commands from single script in parallel?

2022-03-14 Thread J. Roeleveld
On Monday, March 14, 2022 11:51:44 AM CET Björn Fischer wrote: > Hello Joost, > > > Is there a tool/method to execute multiple lines/commands > > simultaneously? Like having 3 or 4 run together and when 1 is > > finished, it will grab the next one in the list? > > probably, GNU Parallel is what

RE: [gentoo-user] Any way to run multiple commands from single script in parallel?

2022-03-14 Thread Laurence Perkins
multiple commands from single script in parallel? Hello Joost, I suppose, that you are talking about Bash scripts. If so, you may put each individual command in a subshell by using an ampersand ("&") at the end of the line. This example[1] shows it nicely. -Ramon [1] 3. Paral

Re: [gentoo-user] Any way to run multiple commands from single script in parallel?

2022-03-14 Thread Andreas Fink
On Mon, 14 Mar 2022 11:13:13 +0100 "J. Roeleveld" wrote: > Hi, > > I often put multiple commands into a single file/script to be run in sequence. > (each line can be executed individually, there is no dependency) > > Is there a tool/method to execute multiple lines/commands simultaneously? Like

Re: [gentoo-user] Any way to run multiple commands from single script in parallel?

2022-03-14 Thread Björn Fischer
Hello Joost, Is there a tool/method to execute multiple lines/commands simultaneously? Like having 3 or 4 run together and when 1 is finished, it will grab the next one in the list? probably, GNU Parallel is what you are looking for:

Re: [gentoo-user] Any way to run multiple commands from single script in parallel?

2022-03-14 Thread Ramon Fischer
Hello Joost, I suppose, that you are talking about Bash scripts. If so, you may put each individual command in a subshell by using an ampersand ("&") at the end of the line. This example[1] shows it nicely. -Ramon [1] 3. Parallelize running commands by grabbing PIDs.: