IBM WebSphere - wsadmin run commands in-line

by
Jeremy Canfield |
Updated: August 20 2020
| IBM WebSphere articles
If you are not familiar with wsadmin.sh (Linux) / wsadmin.bat (Windows), check out our Getting Started article.
By default, the wsadmin command will start a user interface where you can type in a command, like this:
wsadmin>
The -c option can be used to instruct the wsadmin command to run a command in-line instead of being prompted to enter a command. In this example, the AdminApp.view command is executed in a single command.
wsadmin.sh -c "print AdminApp.view('myApp')"
Did you find this article helpful?
If so, consider buying me a coffee over at