Book Image

Java EE 7 Development with WildFly

Book Image

Java EE 7 Development with WildFly

Overview of this book

Table of Contents (21 chapters)
Java EE 7 Development with WildFly
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using advanced languages to create powerful CLI scripts


So far, we have learned how to write CLI shell commands to manage the application server's resources. This approach has the advantage that you can easily access every server resource easily and quickly, thanks to the built-in autocompletion feature. If, on the other hand, you want to perform some sophisticated logic around your commands, then you need to find some other alternatives.

If you are a shell guru, you might easily resort to some bash scripting in order to capture the output of the CLI and use the rich set of Unix/Linux tools to perform some administrative actions.

Supplying a short overview of the bash functionalities might be an amusing exercise; however, if we do this, we would move away from the scope of this book. We will instead document some built-in functionalities such as the following:

  • In the first section, we will show how to use a CLI remote client API from within a Python script

  • In the next section, we will use the...