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?
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
having 3 or 4 run together and when 1 is finished, it will grab the next one in
the list?
I would prefer this over simply splitting the file as the different lines/ commands will not take the same amount of time.
Thanks,
Joost
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:
https://www.gnu.org/software/parallel/parallel.html#examples
The tool can handle most variants of batch processing scenarios without
the steep learning curve of fully fledged (clustered) job schedulers.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 303 |
Nodes: | 16 (2 / 14) |
Uptime: | 74:57:22 |
Calls: | 6,805 |
Calls today: | 1 |
Files: | 12,327 |
Messages: | 5,400,052 |