Created
June 5, 2013 19:33
-
-
Save rmoff/5716573 to your computer and use it in GitHub Desktop.
Show what port WLS AdminServer is running on
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
echo 'AdminServer is running on port ' $(ps -fC "java"|grep AdminServer|awk '{print $2}'|xargs -I'{}' lsof -nPp {}|grep LISTEN|head -n 1|awk -F ":" '{print $2}'|cut -d " " -f 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment