I am trying to run a weblogic multicast test every 2 hours for 5 minutes and output it to a file (in windows env)
The command syntax looks like this.
java -cp E:\bea1033\wlserver_10.3\server\lib\weblogic.jar utils.MulticastTest -n NODE1 -a 224.2.2.2 -p 7002
I can run this via command line and > it to a text file but then I have to hit a key to stop it. I have tried to put this in a bat file and use task scheduler but the task scheduler does not stop the java command and therefore the multicast test continues to run forever.
I have also just tried to enter the above command in task scheduler but the command will not start for some reason. (I am still trying to figure out why it wont start)
Can anybody point me in the right direction or give suggestions?
Use a custom class that will start a thread which exits after 5 minutes, and starts the multicast test in the main thread: