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

8
LINES

< > BotCompany Repo | #1009586 // unix_killProcesses

JavaX fragment (include)

1  
static void unix_killProcesses(Collection<Int> pids, O... _) {
2  
  if (empty(pids)) ret;
3  
  L<S> pids2 = allToString(pids);
4  
  S s = joinWithSpaces(pids2);
5  
  print("Killing processes: " + s);
6  
  Int level = cast optPar level(_);
7  
  backtick("kill " + (level != null ? "-" + level + " " : "") + s);
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009586
Snippet name: unix_killProcesses
Eternal ID of this version: #1009586/5
Text MD5: e37edd5e76d29d99d5df7eecdbf34d93
Author: stefan
Category: javax / unix
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-15 17:28:30
Source code size: 300 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 493 / 545
Version history: 4 change(s)
Referenced in: [show references]