Created
December 21, 2017 21:19
-
-
Save AKSarav/332af807d217f73b2538fb4febe16327 to your computer and use it in GitHub Desktop.
appstate.sh
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
#!/bin/bash | |
# Date: 12-21-2017 | |
# Author: Sarav | |
# Name: appstate.sh | |
# | |
# | |
BASEDIR=`dirname $0` | |
SCRIPT_FILE=$BASEDIR"/appstate.py" | |
java weblogic.WLST $SCRIPT_FILE > appstate.out | |
cat appstate.out|grep -i "^ "|head -5 | |
cat appstate.out|grep -i "^ "|grep -i STATE|awk '{printf " %-30s%20s\n",$1,$2}' | |
cat appstate.out|grep -i "^ "|tail -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment