I have two related programs, one is interactive and the other is not. Both can be run from the command-line. The interactive program maintains parameters and on completion optionally writes the parameters to file. It also optionally allows the non-interactive program to run, and if so it "passes" the parameters to the non-interactive program (via Process.start()) and displays the output from the non-interactive program.
The non-interactive program can also be run from the command-line. It reads the parameters from file and displays them. It then optionally provides for a) processing using the parameters, b) termination, or c) loading the program that maintains the parameters.
What I would like to be able to do for "c" is "simply" pass control to the interactive program and terminate the non-interactive program. The interactive program would then take over and maintain the parameters and allow running of the non-interactive program.
Is there a way to achieve that?