Is there a way to echo something to the screen in a JBoss EAP 6 CLI script

Solution Verified - Updated -

Issue

  • Is there a way in JBoss EAP 6 CLI script to echo something to the screen, something like:
if (outcome == success) of /server-group=main-server-group/deployment=hello.war/:read-resource
  echo "Application already exists ..."
else
  deploy hello.war --all-server-groups
end-if

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.0
    • 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.