The catch here is that I want to wait until the program finishes before the program continues with the next statement,i.e. I want to run it sychronously rather than async, which is what shell does. There may be some way to start it with shell and then check the task id to see when it quits.
Thanks,
Steve