I'm writing a gui based installer program in
java that can be used on linux. All that the gui is gonna do is install some rpms. I plan to do it
using Runtime.getRuntime().exec("command"). From what I understand, this creates a process and runs the command in that process.
I have a series of commands to execute and I want to make sure that they are run in the order i give, or in otherwords in the following code
I want to make sure command2 is executed only after command1 has executed completely.
After googling I found out that I can do the following
I just want to make sure what I'm doing is right, or is there any hidden problem?
Also is there a better way to write to gui-based setup program for linux environment?