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
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
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
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:
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.:
5 matches
Mail list logo