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

9
LINES

< > BotCompany Repo | #1009063 // Linux: Run sudo apt-get update [WORKS, just could be more verbose]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (4547L/30K/101K).

!7

p {
  if (!isLinux()) fail("Sorry, Linux only");
  print("[Running]\n");
  bool has = hasSuperUserVM();
  print(backtickInSuperUserVM("sudo apt-get update"));
  if (!has) killSuperUserVM();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009063
Snippet name: Linux: Run sudo apt-get update [WORKS, just could be more verbose]
Eternal ID of this version: #1009063/3
Text MD5: 2ac8e7e32883d23c41d49dd20e874410
Transpilation MD5: 57341eb4a998226de6b3bf15bf4a38b3
Author: stefan
Category: javax / os
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-01 01:53:16
Source code size: 203 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 521 / 679
Version history: 2 change(s)
Referenced in: [show references]