// What command was this VM launched with? static S getVMCommand() { if (isWindows()) fail("Windows!"); S bla = backtick("ps -u -p " + getProcessID()); L<S> lines = toLines(bla); S header = lines.get(0); S body = lines.get(1); int idx = header.indexOf("COMMAND"); ret body.substring(idx).trim(); }
Began life as a copy of #1002495
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002575 |
Snippet name: | getVMCommand (Linux/possibly Android/possibly Mac OS) |
Eternal ID of this version: | #1002575/1 |
Text MD5: | ef4e3c49468f8b8be95e8ccc0801e62e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-02 17:55:47 |
Source code size: | 324 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 610 / 556 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |