Hi
I have to write a
java prog that has 2 threads. One
thread for executing a script (shell etc.,) and other for timeout. Once the timeout is reached the script executed must be terminated(or killed) by the thread.
To explain it more clearly, my script collects the data from different servers for every 30 seconds and if the server/s do not respond even after the timeout (30 sec), i have to terminate the script and run it afresh.
Is there a solution to this problem? Its urgent.
Thanks in advance,
M.S.Srivatsa