1

I have a shell script with multiple commands and I want to run each command in background, so I put an & at the end of each command. I need to measure how much time execution of all the commands takes in total. How can I do that?

P.s. Commands might take minutes to run.

1

Add wait at the end of shellscript, and start as time ./myshellscript

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.