Script that runs other scripts


Recommended Posts

I want to run one script that runs 3 scripts in that way:

 

Content of the script:

 

./script1 &
wait && ./script2

wait && ./script3

 

I do not if it is possible and how to do it.

 

What I want is to wait until previous script is fully finished until next script starts.

 

How can I do that?

 

I was searching but I did not find the question. Thank you very much.

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.