This reference was very interesting for my purposes.
http://mywiki.wooledge.org/ProcessManagement#advanced
I can achieve it with:
jobpid=$!
and
wait $jobpid
--
View this message in context:
http://www.nabble.com/Is-there-any-mutex-semaphore-mechanism-in-shell-scripts--tp23641994p23658836.html
I would like to execute some functions in parallel, but the last method has
to wait until the first 2 functions have finished.
The script is:
FUNCTION_1() {
...
}
FUNCTION_2() {
...
}
FUNCTION_3() {
...
}
FUNCTION_1 &
FUNCTION_2
FUNCTION_3
So, to speed up the execution of the script, I want FUN