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

10
LINES

< > BotCompany Repo | #1016731 // apacheCommonsExec_backtickToConsole

JavaX fragment (include)

1  
!include once #1016736 // apache commons exec
2  
3  
// returns exit value
4  
static int apacheCommonsExec_backtickToConsole(S cmd) ctex {
5  
  CommandLine cmdLine = CommandLine.parse(cmd);
6  
  new DefaultExecutor executor;
7  
  PumpStreamHandler pump = new(printOutputStream(), printOutputStream());
8  
  executor.setStreamHandler(pump);
9  
  ret executor.execute(cmdLine);
10  
}

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: #1016731
Snippet name: apacheCommonsExec_backtickToConsole
Eternal ID of this version: #1016731/4
Text MD5: c5b3bd53e42d35c9124a223009c75dce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-30 15:59:12
Source code size: 362 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 333 / 361
Version history: 3 change(s)
Referenced in: [show references]