Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1009067 // backtickInSuperUserVM

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10965L/68K).

static S backtickInSuperUserVM(S cmd, bool uninterruptible default false) {
  if (isRoot()) {
    temp tempSetTL(backtick_uninterruptable, uninterruptible);
    ret backtickToConsole_returnOutput(cmd);
  }
    
  //S s = sendToSuperUserVM("please run program * with arguments *", #1009066, ll(cmd));
  S s = sendToSuperUserVM2(uninterruptible ? "backtick uninterruptible *" : "backtick *", cmd);
  assertTrue(startsWith(s, "OK "));
  ret unquote(substring(s, 3));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, uelavcdoioby, vouqrxazstgt

No comments. add comment

Snippet ID: #1009067
Snippet name: backtickInSuperUserVM
Eternal ID of this version: #1009067/12
Text MD5: a8c732f0f9275ee2e3930e8c0eb2847d
Transpilation MD5: 71f260fe5b7ac66b6a5d03533d097d86
Author: stefan
Category: javax / os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-27 01:49:01
Source code size: 475 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 476 / 640
Version history: 11 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)