Created
September 27, 2016 08:10
-
-
Save thikade/e0f1d0241a626a1b5ca94b0f264dbfd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set WLP Home dir | |
WLP_HOME=C:\wlp | |
# path to server cmd | |
WLP_CMD=%WLP_HOME%\bin\server | |
# loop over "server list" output to get all defined Liberty servers, | |
# then execute "server status" for each server | |
# The first line reads `The following servers are defined..` and will be ignored. | |
for /f "tokens=1" %G in ('%WLP_CMD% list ^|findstr /v "^The"') DO %WLP_CMD% status %G |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment