In JBoss EAP 6.0 user made a set of jboss-cli support scripts using bash (on Linux).
With JBoss EAP 6.1 these scripts are working no more.
Here is an example of a script which fails
#!/bin/bash PROFILE=$1 jboss-cli.sh -c <<EOF batch /profile=$PROFILE/subsystem=remoting/connector=remoting-connector:write-attribute(name=security-realm,value=ManagementRealm) /profile=$PROFILE/subsystem=jmx/remoting-connector=jmx:add(use-management-endpoint=false) run-batch EOF
It seems that with EAP 6.1 jboss-cli.sh the stdin stream is not correctly read from batch lines, so the shell script is blocking may be still waiting for input. Ctrl-C on console is the only way to stop it.
- What happened to the jboss-cli.sh?
- What's the difference between 6.0 and 6.1 jboss-cli?
- How should we write batch scripts to make them compatible with ALL current and future versions of jboss-cli?
- Red Hat JBoss Enterprise Application Platform (EAP)
- Linux bash scripts
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.