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

6
LINES

< > BotCompany Repo | #1026380 // unix_hasProcess

JavaX fragment (include)

sbool unix_hasProcess(S pattern) {
  for (S s : values(psPidsAndCommands()))
    if (containsWord_regexp(s, pattern))
      true;
  false;
}

Author comment

Began life as a copy of #1009587

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026380
Snippet name: unix_hasProcess
Eternal ID of this version: #1026380/4
Text MD5: 47a3cb0cab7b15c048b87c2b6e99603d
Author: stefan
Category: javax / unix
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-01 11:48:27
Source code size: 145 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 113 / 147
Version history: 3 change(s)
Referenced in: [show references]