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


< > 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).


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

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, 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: 275 / 308
Version history: 2 change(s)
Referenced in: -

Formerly at &