Skip to content

Instantly share code, notes, and snippets.

@refset
Last active August 1, 2021 17:55
Show Gist options
  • Save refset/d3f6b31731a926f6fa994e4f450abe16 to your computer and use it in GitHub Desktop.
Save refset/d3f6b31731a926f6fa994e4f450abe16 to your computer and use it in GitHub Desktop.
get-current-pid.clj
(-> (java.lang.management.ManagementFactory/getRuntimeMXBean)
(.getName)
(clojure.string/split #"@")
(first))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment