Libraryless. Click here for Pure Java version (6164L/42K/139K).
!7 p { if (hasSuperUserVM()) { print("Super User VM already running!"); ret; } if (!onPATH("x-terminal-emulator")) fail("x-terminal-emulator not on PATH"); S msg = "Starting JavaX Super User VM..."; S cmd = "/bin/bash -c " + bashQuote("echo " + bashQuote(msg) + "; echo; sudo java -jar " + pathToJavaxJar() + " -noawt " + psI(#1009059)); nohup("x-terminal-emulator -e " + bashQuote(cmd)); cleanKill(); }
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: | 537 / 731 |
Version history: | 18 change(s) |
Referenced in: | [show references] |