Libraryless. Click here for Pure Java version (47L/1K/2K).
!747 m { p { S name = ManagementFactory.getRuntimeMXBean().getName(); print(quote(name)); S pid = name.replaceAll("@.*", ""); print(quote(pid)); } }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dhtvkmknsjym, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001121 |
Snippet name: | RuntimeMXBean test (get current process ID) |
Eternal ID of this version: | #1001121/1 |
Text MD5: | edc24daf3b077129c1e0ea40901a58d9 |
Transpilation MD5: | 6c754dfb690f376ebc44d0c55321bd70 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-22 19:53:12 |
Source code size: | 178 bytes / 10 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 589 / 626 |
Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) |