Skip to content

Instantly share code, notes, and snippets.

@rmoff
Created June 5, 2013 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmoff/5716573 to your computer and use it in GitHub Desktop.
Save rmoff/5716573 to your computer and use it in GitHub Desktop.
Show what port WLS AdminServer is running on
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