1 | !include once #1016736 // apache commons exec |
2 | |
3 | // returns exit value |
4 | static int apacheCommonsExec_backtickToStreams(S cmd, OutputStream stdOut, OutputStream stdErr) ctex { |
5 | CommandLine cmdLine = CommandLine.parse(cmd); |
6 | new DefaultExecutor executor; |
7 | PumpStreamHandler pump = new(stdOut, stdErr); |
8 | executor.setStreamHandler(pump); |
9 | ret executor.execute(cmdLine); |
10 | } |
Began life as a copy of #1016731
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: | #1016737 |
Snippet name: | apacheCommonsExec_backtickToStreams |
Eternal ID of this version: | #1016737/1 |
Text MD5: | 57292a2c2571aca0401f317b2d8d5d92 |
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:42 |
Source code size: | 378 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 419 / 431 |
Referenced in: | [show references] |