!include once #1016736 // apache commons exec // returns exit value static int apacheCommonsExec_backtickToStreams(S cmd, OutputStream stdOut, OutputStream stdErr) ctex { CommandLine cmdLine = CommandLine.parse(cmd); new DefaultExecutor executor; PumpStreamHandler pump = new(stdOut, stdErr); executor.setStreamHandler(pump); ret executor.execute(cmdLine); }
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: | 645 / 660 |
| Referenced in: | [show references] |