Run a command and intercept its stdout, which is redirected to sink().
command to run
buffer to collect stdout data to
stdout data is sent to sink()
0 on success Reference: Based on https://github.com/dlang/visuald/blob/master/tools/pipedmd.d#L252
See Implementation
Run a command and intercept its stdout, which is redirected to sink().