This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am executing a shell script using java program on unix platform. I am using Runtime.exec(shell_script_name) method to execute it. A shell script uses prstat command & it gives well formated output to my java program. But, the problem is that the prstat command doesn't get killed by unix os. so that , when ever I execute the script each time a new instance of prstat is seen as a new process using ps -fu command. & this prstat process seen even when java program is stopped.
please, help me so that prstat command execution should get stopped just after script execution finished.