I have two tcl scripts. I want to run the second script when the first finished. How can I do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depends on what do you really mean.
One way is to write a third (“master”) script which would do
Another way is to just add the second call to
sourcefrom the above example to the bottom of the first script.Amendment to the first approach: if the scripts to be executed are located in the same directory as the master script, an idiomatic way to
sourcethem isThis way sourcing will work no matter what the current process’s directory is and where the project directory is located.