How to detect if Karaf is ready to accept commands via 'client'? -


i'm trying automate setup of karaf server issuing commands through bin/client. have following issues:

  1. after starting bin/start, have no idea how long need wait before karaf can start accepting commands
  2. after each command via bin/client, subsequent bin/client commands fail message 'failed acquire session' time, looks previous command still executed , must wait unpredictable amount of time finish.
  3. after issuing commands, need stop karaf. long don't know if last command has finished, can't that.

is there way ask if bin/client ready accept next command, or, best, wait in script until happens?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -