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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content