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

1  
!7
2  
3  
p {
4  
  if (!isLinux()) fail("Sorry, Linux only");
5  
  print("[Running]\n");
6  
  bool has = hasSuperUserVM();
7  
  print(backtickInSuperUserVM("sudo apt-get update"));
8  
  if (!has) killSuperUserVM();
9  
}

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: 274 / 308
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1009063 & http://1009063.tinybrain.de