i need to run a script in unix from my Java code (as a part of a larger project). I am doing the following
However it doesn't always execute the script( Actually the script in this case generates some files which my program reads later on). Because the files are not always generated, I get a file not found exception later on. (However executing the script as a standalone works). I need some help to understand why this is happening. Thanks a lot in advance
Thank you very much Mr Campbell Ritchie for the reply. Is there any other way of invoking such a script then using Java??? I would be grateful if you could let me know of this as I need to this and this assignment is due shortly.