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

10
LINES

< > BotCompany Repo | #1016731 // apacheCommonsExec_backtickToConsole

JavaX fragment (include)

!include once #1016736 // apache commons exec

// returns exit value
static int apacheCommonsExec_backtickToConsole(S cmd) ctex {
  CommandLine cmdLine = CommandLine.parse(cmd);
  new DefaultExecutor executor;
  PumpStreamHandler pump = new(printOutputStream(), printOutputStream());
  executor.setStreamHandler(pump);
  ret executor.execute(cmdLine);
}

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: 329 / 356
Version history: 3 change(s)
Referenced in: [show references]