Libraryless. Click here for Pure Java version (6164L/42K/139K).
1 | !7 |
2 | |
3 | p { |
4 | if (hasSuperUserVM()) { |
5 | print("Super User VM already running!"); |
6 | ret; |
7 | } |
8 | |
9 | if (!onPATH("x-terminal-emulator")) |
10 | fail("x-terminal-emulator not on PATH"); |
11 | |
12 | S msg = "Starting JavaX Super User VM..."; |
13 | S cmd = "/bin/bash -c " + bashQuote("echo " + bashQuote(msg) + "; echo; sudo java -jar " + pathToJavaxJar() + " -noawt " + psI(#1009059)); |
14 | |
15 | nohup("x-terminal-emulator -e " + bashQuote(cmd)); |
16 | cleanKill(); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, tvejysmllsmz, wtqryiryparv
No comments. add comment
Snippet ID: | #1009051 |
Snippet name: | Linux: Start JavaX Super User VM v1 [prompts for password] |
Eternal ID of this version: | #1009051/19 |
Text MD5: | bfa97650ff3454712e3d70a7b2022313 |
Transpilation MD5: | a98a289a2e0f608985ac022c45b2cc61 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | Yes |
Created/modified: | 2017-12-25 20:26:27 |
Source code size: | 455 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 539 / 735 |
Version history: | 18 change(s) |
Referenced in: | [show references] |