[#subprocess-Popen-communicate-066] = xref:subprocess.adoc[subprocess]::xref:subprocess/Popen.adoc[Popen]::communicate :relfileprefix: ../../ :mrdocs: Sends a byte vector to the child, then reads its output and error until it exits. == Synopsis Declared in `<util/subprocess.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::pair<OutBuffer, ErrBuffer> communicate(std::vector<char> const& msg); ---- == Return Value The captured output and error buffers. == Parameters [cols="1,4"] |=== | Name| Description | *msg* | Bytes to send first. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#