Hi All ,
I am executing a shell script through java .
Runtime run=Runtime.getRuntime();
Process proc=run.exec("/root/umdhanas/New/hello.sh");
Now my requirement is i need to monitor from my java program as if the script execution takes more than 2 mins, i should kill that process from my java program. Not sure as how it can be done. Please help me on this.
