Skip to content

Instantly share code, notes, and snippets.

@41tair
Last active August 2, 2023 10:35
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 41tair/524b5a49c6cb66580c66399db45523d3 to your computer and use it in GitHub Desktop.
Save 41tair/524b5a49c6cb66580c66399db45523d3 to your computer and use it in GitHub Desktop.
get pod hostname by pid
xargs -0 -L1 -a /proc/PID/environ | grep HOSTNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment