I want to run multiple exec commands simultaneously. I understand there isn't a way to REALLY run them simultaneously, but I want them to run together.
For example, I have to run this script 10 times. Rather than do it one at a time, each waiting for the previous one to finish, I would like to run them together, allowing them to finish at (about) the same time. I'm thinking this will speed up the process.
Here's what I'm doing now:
foreach site $siteList {
eval [exec -keepnewline script_name $site]
}
Can anyone tell me how to do this? Will it even help with the speed issue? Any other suggestions?
For example, I have to run this script 10 times. Rather than do it one at a time, each waiting for the previous one to finish, I would like to run them together, allowing them to finish at (about) the same time. I'm thinking this will speed up the process.
Here's what I'm doing now:
foreach site $siteList {
eval [exec -keepnewline script_name $site]
}
Can anyone tell me how to do this? Will it even help with the speed issue? Any other suggestions?