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

10
LINES

< > BotCompany Repo | #1001480 // programsRunningInVM

JavaX fragment (include)

1  
// returns "naked" ids (without the #)
2  
static L<S> programsRunningInVM(int vmPort) {
3  
  S s = sendToLocalBot(vmPort, "which programs are you running (ids only)");
4  
  new Matches m;
5  
  if (match3("these: *", s, m)) {
6  
    L<S> l = (L) unstructure(unquote(m.m[0]));
7  
    return l;
8  
  }
9  
  return litlist();
10  
}

Author comment

Began life as a copy of #1001473

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001480
Snippet name: programsRunningInVM
Eternal ID of this version: #1001480/1
Text MD5: 3a84fe96e2589a09ca674194ae72eddb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-17 19:38:27
Source code size: 308 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 607 / 817
Referenced in: [show references]