How to know the execution time in linux
问题 Suppose that I have three script(a.sh b.sh c.sh) to be launched in a script called launcher.sh: first=`date +%s` ./a.sh & ./b.sh & ./c.sh & final=`date +%s` executionTime=`echo "scale=3;($final - $first)/3600" | bc` echo $executionTime I know above script won't work because launcher.sh will finish immediately after launching a.sh, b.sh and c.sh. Launching a.sh, b.sh and c.sh without "&" is wasting time because they don't have to wait for each other. Suppose that the execution time for them