jim merchant

Distinguished
Dec 22, 2010
1
0
18,510
Hello,

we currently run this command from unix:
java -cp ${classpath} com.tufts.tracs.TracsLog $*
Sometime this process does not die, is it possible to code a timeout value around command if not complete in 5 minutes.

Thanks
 

Rusting In Peace

Distinguished
Jul 2, 2009
312
0
19,060
Is this your own program? If so just code in a timeout value? I.e. set up a Timer object and when it fires call System.exit(0).

Otherwise this question is more about process management than Java.