Hello Dears
I have a script where I run a sequence of commands like this
Code:
#!/bin/bash
# Working directory
WDIR="/home/user/dir"
command_1
command_2
command_3
command_4
Now this way the Bash will wait the end of command_1 before to start command_2. Since all this commands are independent from each other I would rather like to have them starting simultaneously before I have a quad core and each of these commands will use a single core.
There is any way to run independent commands in parallel rather than in sequence?
Thanks in advance for your help
Best Wishes
Pietro
Bookmarks