bash - Launch shell script from another script -
this question has answer here:
i have following shell script
#for in {0..10} run command takes 10 seconds parameter $i done
how can run commands in parallel without using gnu parallel not able install on linux box.
is there way can create 10 different shell scripts , call them e.g. script_1.sh, script_2.sh, script_3.sh etc , launch them 1 one script?
you use ampersand (&
) , launch script.sh $1 &
ten times. make script run in fork of main process. easy way parallel processing not flexible , doesn't have many features. simple tutorial can found here.
Comments
Post a Comment