Help Running Programs In Sequential Order
So I have this 3rd party program that can run commands on the server (command line in unix).
The commands I want this 3rd party program to run on the server are to run 3 different programs
in order (order matters).
The first program takes a input file and then outputs a temp file.
Then the second program takes that temp file that program 1 created and uses that as input and produces another temp file. Finally the third program thats program 2's temp file output as input and outputs a final useful file.
The problem is that it will not wait for program 1 to finish before running program 2 so the file that it takes as input might not exist yet. How do I check or make it so that program 2 will not start until program 1 has finished? If I put these commands in a shell script and run the shell script, will it run the programs in order and wait for each program to finish before executing the next?